diff options
author | Julian T <julian@jtle.dk> | 2021-01-31 17:21:11 +0100 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2021-01-31 17:21:11 +0100 |
commit | c4369f86c920888bfaa00e46d74e3f5a1872a9ab (patch) | |
tree | 0bbfa3fa0d6db98b43b3854034def7f028a7a847 /src/lib.rs | |
parent | 86303936ab3180828b984ebb256bab8e69dab5cf (diff) |
Add Scene type and Sphere intersect
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 {} |