Skip to main content

segment_distance

Function segment_distance 

Source
pub fn segment_distance(p: Vec2, a: Vec2, b: Vec2) -> f32
Expand description

Distance from p to the segment a–b.