93#if defined(__cplusplus)
94 A_INLINE
a_real lim()
const {
return max; }
95 A_INLINE
void set_lim(
a_real max_) { max = max_; }
96 A_INLINE
a_point2 const &org()
const {
return orig; }
99 a_line2_set_org(
this, x, y);
101 A_INLINE
a_vector2 const &dir()
const {
return dir_; }
104 return a_line2_set_dir(
this, x, y);
106 A_INLINE
void tgt(
a_point2 &res)
const { a_line2_tgt(
this, &res); }
109 return a_line2_set_tgt(
this, x, y);
113 return a_line2_setv(
this, &p, &v);
117 return a_line2_set(
this, &p, &q);
121 a_line2_eval(
this, w, &res);
125 return a_line2_parm(
this, &rhs);
129 return a_line2_proj(
this, &rhs, &res);
133 return a_line2_limparm(
this, min, max_, &rhs);
137 return a_line2_limproj(
this, min, max_, &rhs, &res);
141 return a_line2_sdist(
this, &rhs);
145 return a_line2_dist(
this, &rhs);
149 return a_line2_limdist(
this, min, max_, &rhs, &w, &p);
153 return a_line2_limdist2(
this, min, max_, &rhs, &w, &p);
158 return a_line2_segdist(
this, &rhs, min1, max1, min2, max2, &w1, &w2, &p1, &p2);
163 return a_line2_segdist2(
this, &rhs, min1, max1, min2, max2, &w1, &w2, &p1, &p2);
167 return a_line2_int0(
this, &rhs, min, max_, &w);
172 return a_line2_int1(
this, &rhs, min1, max1, min2, max2, &w1, &w2);
176 a_line2_rot(
this, &rhs, angle, &res);