Function heron::rapier_plugin::rapier3d::parry::query::details::local_ray_intersection_with_triangle[][src]

pub fn local_ray_intersection_with_triangle(
    a: &OPoint<f32, Const<3_usize>>,
    b: &OPoint<f32, Const<3_usize>>,
    c: &OPoint<f32, Const<3_usize>>,
    ray: &Ray
) -> Option<(RayIntersection, Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 3_usize, 1_usize>>)>
Expand description

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.