pub fn point_segment_distance_sq_2d(p: Point2, a: Point2, b: Point2) -> f64
Squared distance from point p to segment ab in 2D.
p
ab