diff --git a/src/primitive.rs b/src/primitive.rs index 4f7d50b..ad53352 100644 --- a/src/primitive.rs +++ b/src/primitive.rs @@ -58,23 +58,6 @@ pub struct Intersection { pub material: Arc, pub distance: f32, } -impl Intersection { - pub fn new( - point: Point3, - normal: Unit>, - incidence: Unit>, - material: Arc, - t: f32, - ) -> Self { - Intersection { - point, - normal, - incidence, - material, - distance: t, - } - } -} // BOUNDING BOX ----------------------------------------------------------------- #[derive(Clone)] struct BoundingBox {