SegmentPointComparator class

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.

@version 1.7

Constructors

SegmentPointComparator()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

compare(int octant, Coordinate p0, Coordinate p1) int
Compares two {@link Coordinate}s for their relative position along a segment lying in the specified {@link Octant}.
compareValue(int compareSign0, int compareSign1) int
relativeSign(double x0, double x1) int