pub fn ray_toi_with_halfspace( center: Vector, normal: Vector, ray: &Ray, ) -> Option<f32>
Computes the time_of_impact of a ray with a halfspace described by its center and normal.