Removed Intersection::new as it was never used
This commit is contained in:
@@ -58,23 +58,6 @@ pub struct Intersection {
|
|||||||
pub material: Arc<Material>,
|
pub material: Arc<Material>,
|
||||||
pub distance: f32,
|
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 -----------------------------------------------------------------
|
// BOUNDING BOX -----------------------------------------------------------------
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
struct BoundingBox {
|
struct BoundingBox {
|
||||||
|
|||||||
Reference in New Issue
Block a user