Skip to main content

Intersector

Trait Intersector 

Source
pub trait Intersector {
    // Required method
    fn intersect(&self, ray: &mut Ray) -> u32;
}
Expand description

Intersector for BVH and nodes intersection.

Required Methods§

Source

fn intersect(&self, ray: &mut Ray) -> u32

Intersect this instance with a ray.

Ray::hit is mutated with the intersection data.

Returns the number of steps (A.K.A intersections) performed.

Implementors§