com.vividsolutions.jts.algorithm
Class NonRobustCGAlgorithms
public class NonRobustCGAlgorithms
Non-robust versions of various fundamental Computational Geometric algorithms,
FOR TESTING PURPOSES ONLY!.
The non-robustness is due to rounding error in floating point computation.
NonRobustCGAlgorithms
public NonRobustCGAlgorithms()
isCCW
public static boolean isCCW(Coordinate[] ring)
Computes whether a ring defined by an array of
Coordinate
is
oriented counter-clockwise.
This will handle coordinate lists which contain repeated points.
- isCCW in interface CGAlgorithms
ring
- an array of coordinates forming a ring
true
if the ring is oriented counter-clockwise.
isPointInRing
public static boolean isPointInRing(Coordinate p,
Coordinate[] ring)
Computes whether a ring defined by an array of
Coordinate
is
oriented counter-clockwise.
This will handle coordinate lists which contain repeated points.
- isPointInRing in interface CGAlgorithms
ring
- an array of coordinates forming a ring
true
if the ring is oriented counter-clockwise.