diff options
author | Julian T <julian@jtle.dk> | 2021-02-06 17:27:42 +0100 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2021-02-06 17:27:42 +0100 |
commit | 0d5e6bd9363d5ed5c4f28174819fc0f5fd9aa586 (patch) | |
tree | f9ecafe7350ad616486e509ed55904295f505f83 /src/scene/shapes/mod.rs | |
parent | 1e83ea211055eb234b89c69b5d03602e3fcb98fb (diff) |
Reorganized scene module, and fixed bug in sphere intersect
Diffstat (limited to 'src/scene/shapes/mod.rs')
-rw-r--r-- | src/scene/shapes/mod.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/scene/shapes/mod.rs b/src/scene/shapes/mod.rs index 9b6bdfd..d7583ad 100644 --- a/src/scene/shapes/mod.rs +++ b/src/scene/shapes/mod.rs @@ -2,15 +2,3 @@ mod sphere; pub use sphere::Sphere; -use crate::core::{Vector3f, Ray}; -use crate::Float; - -pub trait Shape { - fn intersect(&self, ray: &Ray) -> Option<Float>; - - /// Calculates the normal at point - /// - /// Point is assumed to be on the circle. - /// The resulting vector is assumed to be normalized. - fn norm_at(&self, point: &Vector3f) -> Vector3f; -} |