1 2 3 4 5 6 7 8 9 10
mod sphere; pub use sphere::Sphere; use crate::core::Ray; use crate::Float; pub trait Shape { fn intersect(&self, ray: &Ray) -> Option<Float>; }