getLocation method

LinearLocation getLocation(
  1. double length
)

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.

@param length the length index @return the corresponding LinearLocation

Implementation

LinearLocation getLocation(double length) {
  return getLocationWithResolver(length, true);
}