[][src]Function ncollide_geometry::query::ray_internal::triangle_ray_intersection

pub fn triangle_ray_intersection<P: Point>(
    a: &P,
    b: &P,
    c: &P,
    ray: &Ray<P>
) -> Option<(RayIntersection<P::Vector>, Vector3<P::Real>)>

Computes the intersection between a triangle and a ray.

If an intersection is found, the time of impact, the normal and the barycentric coordinates of the intersection point are returned.