Skip to main content

line_toi_with_halfspace

Function line_toi_with_halfspace 

Source
pub fn line_toi_with_halfspace(
    halfspace_center: &Point<f64>,
    halfspace_normal: &Vector<f64>,
    line_origin: &Point<f64>,
    line_dir: &Vector<f64>,
) -> Option<f64>
Expand description

Computes the time_of_impact of an unbounded line with a halfspace described by its center and normal.