DistanceCalculator2D class

Euclidean distance calculator for points in a 2D plane (X/Y coordinates).

Inheritance

Constructors

DistanceCalculator2D()

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

distance(Point from, Point to) double?
Computes the 2D distance between from and to positions. This implementation ignores all Point.altitude values. from and to must have geometry-based coordinates; if this is not the case, the function returns null. See also DistanceCalculator3D.
override
measure(Shape shape) double?
Computes the 2D length of a line string or polygon. null is returned iif any Point in the lines or polygon is not geometry-based.
override
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