[src]

Function ncollide2df64::ray::gjk_toi_and_normal_with_ray

pub fn gjk_toi_and_normal_with_ray<S: Simplex<V>, G: Implicit<V, _M>, _M: Translation<V>>(m: &_M, geom: &G, simplex: &mut S, ray: &Ray) -> Option<(N, V)>

Projects the origin on a geometry using the GJK algorithm.

Arguments:

* geom - the geometry to project the origin on
* simplex - the simplex to be used by the GJK algorithm. It must be already initialized
with at least one point on the geometry boundary.