LengthLocationMap class
Computes the {@link LinearLocation} for a given length along a linear {@link Geometry}. Negative lengths are measured in reverse from end of the linear geometry. Out-of-range values are clamped.
Constructors
- LengthLocationMap(Geometry linearGeom)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- linearGeom ↔ Geometry
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getLength(
LinearLocation loc) → double -
getLocation(
double length) → LinearLocation - Compute the {@link LinearLocation} corresponding to a length. Negative lengths are measured in reverse from end of the linear geometry. Out-of-range values are clamped. Ambiguous indexes are resolved to the lowest possible location value.
-
getLocationForward(
double length) → LinearLocation -
getLocationWithResolver(
double length, bool resolveLower) → LinearLocation - Compute the {@link LinearLocation} corresponding to a length. Negative lengths are measured in reverse from end of the linear geometry. Out-of-range values are clamped. Ambiguous indexes are resolved to the lowest or highest possible location value, depending on the value of resolveLower
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolveHigher(
LinearLocation loc) → LinearLocation -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getLengthStatic(
Geometry linearGeom, LinearLocation loc) → double - Computes the length for a given {@link LinearLocation} on a linear {@link Geometry}.
-
getLocationStatic(
Geometry linearGeom, double length) → LinearLocation - Computes the {@link LinearLocation} for a given length along a linear {@link Geometry}.
-
getLocationStaticWithResolver(
Geometry linearGeom, double length, bool resolveLower) → LinearLocation - Computes the {@link LinearLocation} for a given length along a linear {@link Geometry}, with control over how the location is resolved at component endpoints.