Skip to main content

line_distance

Function line_distance 

Source
pub fn line_distance<T: Number>(
    a: Vector2<T>,
    b: Vector2<T>,
    p: Vector2<T>,
) -> GeopResult<T>
Expand description

Signed distance of p from the line through a and b, positive on its left.