Skip to main content

distance_to_segment

Function distance_to_segment 

Source
fn distance_to_segment(p: Pos2, a: Pos2, b: Pos2) -> f32
Expand description

Returns the shortest distance between point p and the line segment a -> b.