Trait crystal_ball::shapes::Shape
source · pub trait Shape: Send + Sync {
// Required methods
fn intersects(&self, ray: Ray) -> Option<Hit>;
fn bounds(&self) -> Bounds3;
}
Expand description
A general representation of shapes.
This allows performing ray intersections against them and accessing their bounding volumes.