Class ComputationalGeometry
java.lang.Object
org.jzy3d.maths.algorithms.convexhull.algorithms.ComputationalGeometry
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcomputeOrientation(Coord2d p1, Coord2d p2, Coord2d q) Computes the orientation of a point q to the directed line segment p1-p2.
-
Field Details
-
CounterClockwise
public static final int CounterClockwise- See Also:
-
Clockwise
public static final int Clockwise- See Also:
-
Collinear
public static final int Collinear- See Also:
-
-
Constructor Details
-
ComputationalGeometry
public ComputationalGeometry()
-
-
Method Details
-
computeOrientation
Computes the orientation of a point q to the directed line segment p1-p2. The orientation of a point relative to a directed line segment indicates which way you turn to get to q after travelling from p1 to p2. 1 if q is counter-clockwise from p1-p2, -1 if q is clockwise from p1-p2, 0 if q is collinear with p1-p2-
-