pub fn closest_point_on_segment_3(p: Vec3, a: Vec3, b: Vec3) -> Vec3
Returns the closest point on segment ab to point p in 3-D.
ab
p