pub fn ray_triangle_intersect(
ray: &Ray,
tri: &Triangle,
tri_index: usize,
t_min: f64,
t_max: f64,
) -> Option<HitRecord>Expand description
Test whether a ray intersects a triangle using the Möller-Trumbore algorithm.
Returns Some(HitRecord) when the ray hits the front face within
[t_min, t_max], or None on a miss.