b2SegmentDistance

Function b2SegmentDistance 

Source
pub unsafe extern "C" fn b2SegmentDistance(
    p1: b2Vec2,
    q1: b2Vec2,
    p2: b2Vec2,
    q2: b2Vec2,
) -> b2SegmentDistanceResult
Expand description

Compute the distance between two line segments, clamping at the end points if needed.