Trait rustracer::shape::RayIntersection  
source · pub trait RayIntersection: Debug + Send + Sync {
    // Required method
    fn ray_intersection(&self, ray: Ray) -> Option<HitRecord>;
}Expand description
Trait to determine the intersections of an object with a Ray.
This trait is meant to be implemented by geometrical shapes in order to calculate how light rays hit them.
All objects that implement RayIntersection must implement also: