parry3d::query::details

Function clip_aabb_line

source
pub fn clip_aabb_line(
    aabb: &Aabb,
    origin: &Point<f32>,
    dir: &Vector<f32>,
) -> Option<((f32, Vector<f32>, isize), (f32, Vector<f32>, isize))>
Expand description

Computes the segment given by the intersection of a line and an Aabb.