pub fn point_to_segment_dist(point: Vec2, a: Vec2, b: Vec2) -> f32
Distance from a point to a line segment in 2D.