diff options
Diffstat (limited to 'racer-tracer/src/geometry')
| -rw-r--r-- | racer-tracer/src/geometry/sphere.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/racer-tracer/src/geometry/sphere.rs b/racer-tracer/src/geometry/sphere.rs index 6a0ab9c..e974c44 100644 --- a/racer-tracer/src/geometry/sphere.rs +++ b/racer-tracer/src/geometry/sphere.rs @@ -20,16 +20,6 @@ impl Sphere { } } -impl Clone for Sphere { - fn clone(&self) -> Self { - Self { - pos: self.pos, - radius: self.radius, - material: self.material, - } - } -} - impl Hittable for Sphere { fn hit(&self, ray: &Ray, t_min: f64, t_max: f64) -> Option<HitRecord> { let oc = ray.origin() - self.pos; @@ -61,8 +51,4 @@ impl Hittable for Sphere { hit_record.set_face_normal(ray, outward_normal); Some(hit_record) } - - fn clone_box(&self) -> Box<dyn Hittable> { - Box::new(self.clone()) - } } |
