Skip to main content

ray_toi_with_halfspace

Function ray_toi_with_halfspace 

Source
pub fn ray_toi_with_halfspace(
    center: &Point<f64>,
    normal: &Vector<f64>,
    ray: &Ray,
) -> Option<f64>
Expand description

Computes the time_of_impact of a ray with a halfspace described by its center and normal.