Function heron::rapier_plugin::rapier::ncollide::query::algorithms::gjk::directional_distance [−][src]
pub fn directional_distance<N, G1, G2>(
m1: &Isometry<N, U3, Unit<Quaternion<N>>>,
g1: &G1,
m2: &Isometry<N, U3, Unit<Quaternion<N>>>,
g2: &G2,
dir: &Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>,
simplex: &mut VoronoiSimplex<N>
) -> Option<(N, Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>, Point<N, U3>, Point<N, U3>)> where
N: RealField,
G1: SupportMap<N> + ?Sized,
G2: SupportMap<N> + ?Sized,
Compute the normal and the distance that can travel g1
along the direction
dir
so that g1
and g2
just touch.