Removed Intersection::new as it was never used

This commit is contained in:
STP
2023-11-20 20:04:22 -05:00
parent 47276e1bdc
commit fcb6695a0d

View File

@@ -58,23 +58,6 @@ pub struct Intersection {
pub material: Arc<Material>,
pub distance: f32,
}
impl Intersection {
pub fn new(
point: Point3<f32>,
normal: Unit<Vector3<f32>>,
incidence: Unit<Vector3<f32>>,
material: Arc<Material>,
t: f32,
) -> Self {
Intersection {
point,
normal,
incidence,
material,
distance: t,
}
}
}
// BOUNDING BOX -----------------------------------------------------------------
#[derive(Clone)]
struct BoundingBox {