DistanceCalculator3D class
Euclidean distance calculator for points in a 3D space (X/Y/Z coordinates).
- Inheritance
-
- Object
- DistanceCalculator
- DistanceCalculator3D
Constructors
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 distance between
from
andto
positions. Returns a 3D distance when Point.altitude are set in both positions, otherwise a 2D distance is returned.from
andto
must have geometry-based coordinates; if this is not the case, the function returnsnull
. See also DistanceCalculator2D.override -
measure(
Shape shape) → double? -
Computes the 3D length of a line or polygon.
null
is returned iif any Point in the line or polygon is not geometry-based. If all points have anull
altitude
, returns a 2D distance. If some points have their altitude set while some others do not, the resulting distance may be inconsistent as some segments will be measured in 2D and others in 3D.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