From 0d5e6bd9363d5ed5c4f28174819fc0f5fd9aa586 Mon Sep 17 00:00:00 2001 From: Julian T Date: Sat, 6 Feb 2021 17:27:42 +0100 Subject: Reorganized scene module, and fixed bug in sphere intersect --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 5883167..0ec6700 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,7 +5,7 @@ pub mod scene; pub mod trace; pub mod sample; -use std::ops::{Add, Sub, Mul, DivAssign}; +use std::ops::{Add, Sub, Mul, DivAssign, Neg}; use std::cmp; use std::fmt; @@ -18,6 +18,7 @@ pub trait Number: Sub + Add + Mul + + Neg + DivAssign + fmt::Display {} -- cgit v1.2.3