Class GeometricOperations_2
java.lang.Object
Jcg.geometry.GeometricOperations_2
Deprecated.
refer to class GeometricConstructions_2 and GeometricPredicates_2
Provides implementations of basic geometric predicates and constructions (in 2D)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Point_2circumCenter(Point_2 p0, Point_2 p1, Point_2 p2) Deprecated.Returns the (approximate) circumcenter of input trianglestatic booleanDeprecated.Returns true if a, b and c lie on a same linestatic NumberdistanceToSegment(Point_2 ps, Point_2 pe, Point_2 p) Deprecated.Returns the distance (non exact computation) of a point to a segmentstatic booleandoIntersect(Segment_2 s, Ray_2 r) Deprecated.Returns true if segment s and ray r intersectstatic booleandoIntersect(Segment_2 s, Segment_2 t) Deprecated.Returns true if segments s and t intersectstatic booleanDeprecated.Tests if point p lies inside the circumcircle of triangle a,b,cstatic Point_2Deprecated.Returns approximate intersection between segment s and ray rstatic Point_2Deprecated.Returns approximate intersection between segmentsstatic booleanisCounterClockwise(Point_2 a, Point_2 b, Point_2 c) Deprecated.Returns true if a, b and c turn in counter-clockwise directionstatic booleanDeprecated.Returns true if point p lies on segment abstatic voidDeprecated.static intorientation(Point_2 a, Point_2 b, Point_2 c) Deprecated.Returns the orientation of a, b and c
-
Field Details
-
epsilon2
private static final double epsilon2Deprecated.- See Also:
-
epsilon3
private static final double epsilon3Deprecated.- See Also:
-
-
Constructor Details
-
GeometricOperations_2
public GeometricOperations_2()Deprecated.
-
-
Method Details
-
circumCenter
-
distanceToSegment
-
orientation
Deprecated.Returns the orientation of a, b and c- Parameters:
a- ,b,c the 3 points to test- Returns:
- 1 if sequence (a, b, c) turns in counter-clockwise direction, -1 if it turns in clockwise direction, 0 if the points are collinear Test is filtered: if precision bound epsilon is reached, then perform computation with infinite precision arithmetic (using the java.util.BigDecimal class)
-
isCounterClockwise
Deprecated.Returns true if a, b and c turn in counter-clockwise direction- Parameters:
a- ,b,c the 3 points to test- Returns:
- true if a, b and c turn in counter-clockwise direction Test is filtered: if precision bound epsilon is reached, then perform computation with infinite precision arithmetic (using the java.util.BigDecimal class)
-
collinear
Deprecated.Returns true if a, b and c lie on a same line- Parameters:
a- ,b,c the 3 points to test- Returns:
- true if a, b and c are collinear (lie on a same line) Test is filtered: if precision bound epsilon is reached, then perform computation with infinite precision arithmetic (using the java.util.BigDecimal class)
-
inCircle
Deprecated.Tests if point p lies inside the circumcircle of triangle a,b,c- Parameters:
p- point to testa- ,b,c triangle- Returns:
- true/false Test is filtered: if precision bound epsilon is reached, then perform computation with infinite precision arithmetic (using the java.util.BigDecimal class)
-
doIntersect
Deprecated.Returns true if segments s and t intersect- Parameters:
s- ,t the 2 segments- Returns:
- true if s,t intersect each other Test is filtered: if precision bound epsilon is reached, then perform computation with infinite precision arithmetic (using the java.util.BigDecimal class)
-
doIntersect
-
intersect
-
intersect
-
liesOn
-
main
Deprecated.
-