aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2021-01-31 17:21:11 +0100
committerJulian T <julian@jtle.dk>2021-01-31 17:21:11 +0100
commitc4369f86c920888bfaa00e46d74e3f5a1872a9ab (patch)
tree0bbfa3fa0d6db98b43b3854034def7f028a7a847 /src/lib.rs
parent86303936ab3180828b984ebb256bab8e69dab5cf (diff)
Add Scene type and Sphere intersect
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index c78c51e..a120f0d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,8 +1,9 @@
pub mod core;
pub mod camera;
mod scene;
+mod render;
-use std::ops::{Add, Sub, Mul};
+use std::ops::{Add, Sub, Mul, DivAssign};
use std::cmp;
pub trait Number:
@@ -10,7 +11,8 @@ pub trait Number:
cmp::PartialOrd +
Sub<Output = Self> +
Add<Output = Self> +
- Mul<Output = Self>
+ Mul<Output = Self> +
+ DivAssign
{}
impl Number for usize {}