pub trait Hittable { // Required method fn intersection( &self, rng: &mut Box<dyn RngCore>, ray: &Ray, ) -> Option<HitRecord>; }
Represents an object that a ray can hit.
Computes the hit parameters for an input ray. Returns None if the ray does not hit this object.
None