Skip to main content

line_plane_parameter

Function line_plane_parameter 

Source
pub fn line_plane_parameter(
    origin: [f64; 3],
    dir: [f64; 3],
    plane_point: [f64; 3],
    normal: [f64; 3],
) -> Option<f64>
Expand description

Where a ray (or line) meets a plane: the parameter t such that origin + t dir lies on the plane through plane_point with normal. None if parallel (including lying in the plane).