90#if defined(__cplusplus)
91 A_INLINE
a_real lim()
const {
return max; }
92 A_INLINE
void set_lim(
a_real max_) { max = max_; }
93 A_INLINE
a_point2 const &org()
const {
return orig; }
96 a_line2_set_org(
this, x, y);
98 A_INLINE
a_vector2 const &dir()
const {
return dir_; }
101 return a_line2_set_dir(
this, x, y);
103 A_INLINE
void tgt(
a_point2 &res)
const { a_line2_tgt(
this, &res); }
106 return a_line2_set_tgt(
this, x, y);
110 return a_line2_setv(
this, &p, &v);
114 return a_line2_set(
this, &p, &q);
118 a_line2_eval(
this, w, &res);
122 return a_line2_parm(
this, &rhs);
126 return a_line2_proj(
this, &rhs, &res);
130 return a_line2_limparm(
this, min, max_, &rhs);
134 return a_line2_limproj(
this, min, max_, &rhs, &res);
138 return a_line2_sdist(
this, &rhs);
142 return a_line2_dist(
this, &rhs);
146 return a_line2_limdist(
this, min, max_, &rhs, &w, &p);
150 return a_line2_limdist1(
this, min, max_, &rhs, &w, &p);
154 return a_line2_limdist2(
this, min, max_, &rhs, &w, &p);
159 return a_line2_segdist(
this, &rhs, min1, max1, min2, max2, &w1, &w2, &p1, &p2);
164 return a_line2_segdist2(
this, &rhs, min1, max1, min2, max2, &w1, &w2, &p1, &p2);
168 return a_line2_int0(
this, &rhs, min, max_, &w);
173 return a_line2_int1(
this, &rhs, min1, max1, min2, max2, &w1, &w2);
177 a_line2_rot(
this, &rhs, angle, &res);