Skip to main content

segment_distance

Function segment_distance 

Source
pub fn segment_distance<P1, Q1, P2, Q2>(
    p1: P1,
    q1: Q1,
    p2: P2,
    q2: Q2,
) -> SegmentDistanceResult
where P1: Into<Vec2>, Q1: Into<Vec2>, P2: Into<Vec2>, Q2: Into<Vec2>,
Expand description

Compute the closest points between two line segments.