aboutsummaryrefslogtreecommitdiff
path: root/src/scene/shapes/mod.rs
blob: 7fbb8dba4aff48b9b20a4a65747242ee44659fbe (plain)
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>;
}