Distance class
Functions to compute distance between basic geometric structures.
@author Martin Davis
Constructors
- Distance()
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
-
pointToLinePerpendicular(
Coordinate p, Coordinate A, Coordinate B) → double - Computes the perpendicular distance from a point p to the (infinite) line containing the points AB
-
pointToSegment(
Coordinate p, Coordinate A, Coordinate B) → double - Computes the distance from a point p to a line segment AB
-
pointToSegmentString(
Coordinate p, List< Coordinate> line) → double - Computes the distance from a point to a sequence of line segments.
-
segmentToSegment(
Coordinate A, Coordinate B, Coordinate C, Coordinate D) → double - Computes the distance from a line segment AB to a line segment CD