fraction

fun fraction(distance: Distance): Double

Returns the fraction of the line segment based on the specified distance in meters.