Function maths_rs::ray_vs_plane

source ·
pub fn ray_vs_plane<T: Float + SignedNumberOps<T>>(
    r0: Vec3<T>,
    rv: Vec3<T>,
    x: Vec3<T>,
    n: Vec3<T>
) -> Option<Vec3<T>>
Expand description

returns the intersection point of the ray defined as origin of ray r0 and direction rv with the plane defined by point on plane x and normal n