Function maths_rs::ray_vs_triangle

source ·
pub fn ray_vs_triangle<T: Float>(
    r0: Vec3<T>,
    rv: Vec3<T>,
    t0: Vec3<T>,
    t1: Vec3<T>,
    t2: Vec3<T>
) -> Option<Vec3<T>>
Expand description

returns the intersection point of ray r0 and normalized direction rv with triangle t0-t1-t2