Geometric functions concerning lines.

- closestPointOnLine :: Point -> Point -> Point -> Point
- closestPointOnLine_param :: Point -> Point -> Point -> Float

# Documentation

Given an infinite line which intersects `P1`

and `P1`

,
return the point on that line that is closest to `P3`

closestPointOnLine_paramSource

Given an infinite line which intersects P1 and P2, let P4 be the point on the line that is closest to P3.

Return an indication of where on the line P4 is relative to P1 and P2.

if P4 == P1 return 0 if P4 == P2 return 1 if P4 is halfway between P1 and P2 then return 0.5