[][src]Function oxygengine_physics_2d::prelude::ncollide2d::query::algorithms::gjk::project_origin

pub fn project_origin<N, G>(
    m: &Isometry<N, U2, Unit<Complex<N>>>,
    g: &G,
    simplex: &mut VoronoiSimplex<N>
) -> Option<Point<N, U2>> where
    G: SupportMap<N> + ?Sized,
    N: RealField

Projects the origin on the boundary of the given shape.

The origin is assumed to be outside of the shape. If it is inside, use the EPA algorithm instead. Return None if the origin is not inside of the shape or if the EPA algorithm failed to compute the projection.