pub fn closest_point_on_segment_2(p: Vec2, a: Vec2, b: Vec2) -> Vec2
Returns the closest point on segment ab to point p in 2-D.
ab
p