50[[deprecated(
"Use area_of_triangle() from point.H")]]
55 return area_of_triangle(a, b, c);
58[[deprecated(
"Use points_are_colinear via Point::is_colinear_with()")]]
63 return area_of_parallelogram(a, b, c) == 0;
66[[deprecated(
"Use orientation() from point.H")]]
67inline bool c_is_to_left_(
const Point & a,
const Point & b,
const Point & c)
69 return area_of_parallelogram(a, b, c) > 0;
72[[deprecated(
"Use orientation() from point.H")]]
73inline bool is_clockwise(
const Point & a,
const Point & b,
const Point & c)
75 return area_of_parallelogram(a, b, c) < 0;
78[[deprecated(
"Use orientation() from point.H")]]
79inline bool left_on(
const Point & a,
const Point & b,
const Point & c)
81 return area_of_parallelogram(a, b, c) >= 0;
84[[deprecated(
"Use Segment::intersects_properly_with() from point.H")]]
86 const Point & c,
const Point & d)
98[[deprecated(
"Use Point::is_between() from point.H")]]
99inline bool between(
const Point & a,
const Point & b,
const Point & c)
104 if (a.get_x() != b.get_x())
105 return (((a.get_x() <= c.get_x()) and (c.get_x() <= b.get_x())) or
106 ((a.get_x() >= c.get_x()) and (c.get_x() >= b.get_x())));
108 return (((a.get_y() <= c.get_y()) and (c.get_y() <= b.get_y())) or
109 ((a.get_y() >= c.get_y()) and (c.get_y() >= b.get_y())));
112[[deprecated(
"Use Segment::intersects_with() from point.H")]]
114 const Point & c,
const Point & d)
120[[deprecated(
"Use segments_intersect() from point.H")]]
122 const Point & c,
const Point & d)
2D point and geometric utilities.
bool c_is_to_left_(const Point &a, const Point &b, const Point &c)
bool intersectp(const Point &a, const Point &b, const Point &c, const Point &d)
Geom_Number area_of_triangle_legacy(const Point &a, const Point &b, const Point &c)
bool left_on(const Point &a, const Point &b, const Point &c)
bool between(const Point &a, const Point &b, const Point &c)
bool intersect_improp(const Point &a, const Point &b, const Point &c, const Point &d)
bool is_clockwise(const Point &a, const Point &b, const Point &c)
bool proper_intersection(const Point &a, const Point &b, const Point &c, const Point &d)
bool points_are_colinear(const Point &a, const Point &b, const Point &c)