Skip to main content

line_vs_plane

Function line_vs_plane 

Source
pub fn line_vs_plane<T: Float + SignedNumberOps<T>>(
    l0: Vec3<T>,
    lv: Vec3<T>,
    x: Vec3<T>,
    n: Vec3<T>,
) -> Option<Vec3<T>>
Expand description

returns the intersection point of the infinite line defined as point on line l0 and direction lv with the plane defined by point on plane x and normal n