DistanceCalculator class abstract
Base class for distance calculation algorithms.
Constructors
- DistanceCalculator()
-
const
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 points
from
andto
. -
measure(
Shape shape) → double? -
Computes the length of a line or polygon by adding up distances between
consecutive Points making it up. Returns
null
if distance returnnull
for any two consecutive Points. -
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