tinybvh-rs 0.1.0-beta.3

Rust wrapper for tinybvh
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::Ray;

/// Intersector for BVH and nodes intersection.
pub trait Intersector {
    /// Intersect this instance with a ray.
    ///
    /// [`Ray::hit`] is mutated with the intersection data.
    ///
    /// Returns the number of steps (A.K.A intersections) performed.
    fn intersect(&self, ray: &mut Ray) -> u32;
}