Skip to main content

ray_aabb_intersect

Function ray_aabb_intersect 

Source
pub fn ray_aabb_intersect(
    ray: &Ray,
    aabb_min: [f32; 3],
    aabb_max: [f32; 3],
) -> bool
Expand description

Test ray–AABB intersection using the slab method.

Returns true if the ray hits the box [aabb_min, aabb_max].