pub fn parametric_from_point<T>(
    p0: Vector2<T>,
    p1: Vector2<T>,
    point: Vector2<T>,
    epsilon: T
) -> T
where T: Real,
Expand description

Returns the parametric value on the line segment going from p0 to p1 at the point given.

Note this function assumes the point is on the line and properly handles the cases of vertical and horizontal lines by using the component with the largest difference in the calculation.