com.vividsolutions.jts.noding
Class SegmentPointComparator
java.lang.Object
com.vividsolutions.jts.noding.SegmentPointComparator
public class SegmentPointComparator
extends java.lang.Object
Implements a robust method of comparing the relative position of two
points along the same segment.
The coordinates are assumed to lie "near" the segment.
This means that this algorithm will only return correct results
if the input coordinates
have the same precision and correspond to rounded values
of exact coordinates lying on the segment.
relativeSign
public static int relativeSign(double x0,
double x1)