ncollide3d::query

Function closest_points_segment_segment_with_locations_nD_eps

Source
pub fn closest_points_segment_segment_with_locations_nD_eps<N, const D: usize>(
    seg1: (&Point<N, D>, &Point<N, D>),
    seg2: (&Point<N, D>, &Point<N, D>),
    eps: N,
) -> (SegmentPointLocation<N>, SegmentPointLocation<N>, bool)
where N: RealField + Copy,
Expand description

Segment-segment closest points computation in an arbitrary dimension.

This returns the location of the closest points, as well as a boolean indicating if the two segments were considered parallel.