@Deprecated
public class GeometricOperations_2
extends java.lang.Object
Constructor and Description |
---|
GeometricOperations_2()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Point_2 |
circumCenter(Point_2 p0,
Point_2 p1,
Point_2 p2)
Deprecated.
Returns the (approximate) circumcenter of input triangle
|
static boolean |
collinear(Point_2 a,
Point_2 b,
Point_2 c)
Deprecated.
Returns true if a, b and c lie on a same line
|
static java.lang.Number |
distanceToSegment(Point_2 ps,
Point_2 pe,
Point_2 p)
Deprecated.
Returns the distance (non exact computation) of a point to a segment
|
static boolean |
doIntersect(Segment_2 s,
Ray_2 r)
Deprecated.
Returns true if segment s and ray r intersect
|
static boolean |
doIntersect(Segment_2 s,
Segment_2 t)
Deprecated.
Returns true if segments s and t intersect
|
static boolean |
inCircle(Point_2 p,
Point_2 a,
Point_2 b,
Point_2 c)
Deprecated.
Tests if point p lies inside the circumcircle of triangle a,b,c
|
static Point_2 |
intersect(Segment_2 s,
Ray_2 r)
Deprecated.
Returns approximate intersection between segment s and ray r
|
static Point_2 |
intersect(Segment_2 s,
Segment_2 t)
Deprecated.
Returns approximate intersection between segments
|
static boolean |
isCounterClockwise(Point_2 a,
Point_2 b,
Point_2 c)
Deprecated.
Returns true if a, b and c turn in counter-clockwise direction
|
static boolean |
liesOn(Point_2 p,
Point_2 a,
Point_2 b)
Deprecated.
Returns true if point p lies on segment ab
|
static void |
main(java.lang.String[] args)
Deprecated.
|
static int |
orientation(Point_2 a,
Point_2 b,
Point_2 c)
Deprecated.
Returns the orientation of a, b and c
|
public static Point_2 circumCenter(Point_2 p0, Point_2 p1, Point_2 p2)
p0,p1,p2
- the three vertices of the trianglepublic static java.lang.Number distanceToSegment(Point_2 ps, Point_2 pe, Point_2 p)
ps,pe
- the start/end of the segmentp
- the query pointpublic static int orientation(Point_2 a, Point_2 b, Point_2 c)
a,b,c
- the 3 points to testpublic static boolean isCounterClockwise(Point_2 a, Point_2 b, Point_2 c)
a,b,c
- the 3 points to testpublic static boolean collinear(Point_2 a, Point_2 b, Point_2 c)
a,b,c
- the 3 points to testpublic static boolean inCircle(Point_2 p, Point_2 a, Point_2 b, Point_2 c)
a,b,c
- trianglep
- point to testpublic static boolean doIntersect(Segment_2 s, Segment_2 t)
s,t
- the 2 segmentspublic static boolean doIntersect(Segment_2 s, Ray_2 r)
s
- the segmentr
- the raypublic static Point_2 intersect(Segment_2 s, Segment_2 t)
s,t
- the 2 segmentspublic static Point_2 intersect(Segment_2 s, Ray_2 r)
s
- the segmentr
- the raypublic static boolean liesOn(Point_2 p, Point_2 a, Point_2 b)
a,b,p
- the 3 pointspublic static void main(java.lang.String[] args)