From c4369f86c920888bfaa00e46d74e3f5a1872a9ab Mon Sep 17 00:00:00 2001 From: Julian T Date: Sun, 31 Jan 2021 17:21:11 +0100 Subject: Add Scene type and Sphere intersect --- src/lib.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/lib.rs') 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 + Add + - Mul + Mul + + DivAssign {} impl Number for usize {} -- cgit v1.2.3