Returns the distance from the beginning of the path to the point.
a point on the path
a path measure for the path
the distance of this