ncollide3d::query::algorithms::gjk

Function directional_distance

Source
pub fn directional_distance<N, G1, G2>(
    m1: &Isometry<N>,
    g1: &G1,
    m2: &Isometry<N>,
    g2: &G2,
    dir: &Vector<N>,
    simplex: &mut VoronoiSimplex<N>,
) -> Option<(N, Vector<N>, Point<N>, Point<N>)>
where N: RealField + Copy, G1: SupportMap<N> + ?Sized, G2: SupportMap<N> + ?Sized,
Expand description

Compute the normal and the distance that can travel g1 along the direction dir so that g1 and g2 just touch.