Lines Matching defs:lp
103 bool same_orthogonal_quadrant(const line_parameters& lp) const
105 return s_orthogonal_quadrant[octant] == s_orthogonal_quadrant[lp.octant];
109 bool same_diagonal_quadrant(const line_parameters& lp) const
111 return s_diagonal_quadrant[octant] == s_diagonal_quadrant[lp.octant];
160 void inline fix_degenerate_bisectrix_start(const line_parameters& lp,
163 int d = iround((double(*x - lp.x2) * double(lp.y2 - lp.y1) -
164 double(*y - lp.y2) * double(lp.x2 - lp.x1)) / lp.len);
167 *x = lp.x1 + (lp.y2 - lp.y1);
168 *y = lp.y1 - (lp.x2 - lp.x1);
174 void inline fix_degenerate_bisectrix_end(const line_parameters& lp,
177 int d = iround((double(*x - lp.x2) * double(lp.y2 - lp.y1) -
178 double(*y - lp.y2) * double(lp.x2 - lp.x1)) / lp.len);
181 *x = lp.x2 + (lp.y2 - lp.y1);
182 *y = lp.y2 - (lp.x2 - lp.x1);