RadialComparator class

Compares {@link Coordinate}s for their angle and distance relative to an origin.

@author Martin Davis @version 1.7

Constructors

RadialComparator(Coordinate origin)

Properties

hashCode int
The hash code for this object.
no setterinherited
origin Coordinate
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compare(Object o1, Object o2) int
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
polarCompare(Coordinate o, Coordinate p, Coordinate q) int
Given two points p and q compare them with respect to their radial ordering about point o. First checks radial ordering. If points are collinear, the comparison is based on their distance to the origin.
toString() String
A string representation of this object.
inherited

Operators

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