line.closestPointNormalizedLength(point)
Return the normalized length (distance from the start of the line / total line length) of the line up to the point that lies closest to point.
point