fractionAlong

fun fractionAlong(line: Polyline, point: Point, tolerance: Double): Double

Finds the location on the line nearest the input point, expressed as the fraction along the line's total geodesic length, if the point is within the specified distance from the closest location on the line. Supports true curves.

Return

The length along the line nearest the input point, expressed as the fraction of the line's length between 0.0 and 1.0, or NAN if the point is outside the tolerance.

Since

200.1.0