public class ExactPredicates_2 extends java.lang.Object implements GeometricPredicates_2
| Constructor and Description |
|---|
ExactPredicates_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
|
public int orientation(Point_2 a, Point_2 b, Point_2 c)
orientation in interface GeometricPredicates_2a,b,c - the 3 points to testpublic boolean isCounterClockwise(Point_2 a, Point_2 b, Point_2 c)
isCounterClockwise in interface GeometricPredicates_2a,b,c - the 3 points to testpublic boolean collinear(Point_2 a, Point_2 b, Point_2 c)
collinear in interface GeometricPredicates_2a,b,c - the 3 points to testpublic boolean inCircle(Point_2 p, Point_2 a, Point_2 b, Point_2 c)
inCircle in interface GeometricPredicates_2a,b,c - trianglep - point to testpublic boolean doIntersect(Segment_2 s, Segment_2 t)
doIntersect in interface GeometricPredicates_2s,t - the 2 segmentspublic boolean doIntersect(Segment_2 s, Ray_2 r)
doIntersect in interface GeometricPredicates_2s - the segmentr - the raypublic boolean liesOn(Point_2 p, Point_2 a, Point_2 b)
liesOn in interface GeometricPredicates_2a,b,p - the 3 points