From 8296be848319eecd43f94900d4d12414ec189166 Mon Sep 17 00:00:00 2001 From: Julian T Date: Wed, 3 Feb 2021 15:34:17 +0100 Subject: Add simple perspective camera --- src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index df9bc1d..c3025b3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,6 +4,7 @@ mod scene; use std::ops::{Add, Sub, Mul, DivAssign}; use std::cmp; +use std::fmt; /// Trait used to implement generics /// @@ -14,7 +15,8 @@ pub trait Number: Sub + Add + Mul + - DivAssign + DivAssign + + fmt::Display {} impl Number for i32 {} -- cgit v1.2.3