public interface GeometricPredicates_2
Modifier and Type | Method and Description |
---|---|
boolean |
collinear(Point_2 a,
Point_2 b,
Point_2 c)
Returns true if a, b and c lie on a same line
|
boolean |
doIntersect(Segment_2 s,
Ray_2 r)
Returns true if segment s and ray r intersect
|
boolean |
doIntersect(Segment_2 s,
Segment_2 t)
Returns true if segments s and t intersect
|
boolean |
inCircle(Point_2 p,
Point_2 a,
Point_2 b,
Point_2 c)
Tests if point p lies inside the circumcircle of triangle a,b,c
|
boolean |
isCounterClockwise(Point_2 a,
Point_2 b,
Point_2 c)
Returns true if a, b and c turn in counter-clockwise direction
|
boolean |
liesOn(Point_2 p,
Point_2 a,
Point_2 b)
Returns true if point p lies on segment ab
|
int |
orientation(Point_2 a,
Point_2 b,
Point_2 c)
Returns the orientation of a, b and c
|
int orientation(Point_2 a, Point_2 b, Point_2 c)
a,b,c
- the 3 points to testboolean isCounterClockwise(Point_2 a, Point_2 b, Point_2 c)
a,b,c
- the 3 points to testboolean collinear(Point_2 a, Point_2 b, Point_2 c)
a,b,c
- the 3 points to testboolean inCircle(Point_2 p, Point_2 a, Point_2 b, Point_2 c)
a,b,c
- trianglep
- point to testboolean doIntersect(Segment_2 s, Segment_2 t)
s,t
- the 2 segmentsboolean doIntersect(Segment_2 s, Ray_2 r)
s
- the segmentr
- the ray