diff options
| author | Sakarias Johansson <sakarias.johansson@goodbyekansas.com> | 2023-01-10 17:54:39 +0100 |
|---|---|---|
| committer | Sakarias Johansson <sakarias.johansson@goodbyekansas.com> | 2023-01-11 19:36:38 +0100 |
| commit | bbecf67545c2bd6822b0680673aa850c5ddef9f3 (patch) | |
| tree | 741b2fc03797a8fedcfe67e34687b4443fcf41f7 /racer-tracer/src/geometry.rs | |
| parent | 899f81eed6c221dce22333ad03704b12d7634a54 (diff) | |
| download | racer-tracer-bbecf67545c2bd6822b0680673aa850c5ddef9f3.tar.gz racer-tracer-bbecf67545c2bd6822b0680673aa850c5ddef9f3.tar.xz racer-tracer-bbecf67545c2bd6822b0680673aa850c5ddef9f3.zip | |
🔨 Refactors & Use rayon
- All data shared between threads are now Arcs since the data is
immutable.
- Remove tokio
- Rustified main
Diffstat (limited to 'racer-tracer/src/geometry.rs')
| -rw-r--r-- | racer-tracer/src/geometry.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/racer-tracer/src/geometry.rs b/racer-tracer/src/geometry.rs index aa1c18c..8d86353 100644 --- a/racer-tracer/src/geometry.rs +++ b/racer-tracer/src/geometry.rs @@ -47,8 +47,4 @@ impl Default for HitRecord { pub trait Hittable { //pub trait Hittable { fn hit(&self, ray: &Ray, t_min: f64, t_max: f64) -> Option<HitRecord>; - - // Manual ugly clone since forcing on Clone would make it a super trait. - // Clone requires Sized and super traits cannot be Sized. - fn clone_box(&self) -> Box<dyn Hittable>; } |
