aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2021-02-03 15:34:17 +0100
committerJulian T <julian@jtle.dk>2021-02-03 15:34:17 +0100
commit8296be848319eecd43f94900d4d12414ec189166 (patch)
treed0adad5c05692a55e2957d02eb62666bd45e011f /src/lib.rs
parent32e719a517a6fea113f3e66e350c9aa60ddd98b9 (diff)
Add simple perspective camera
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 3 insertions, 1 deletions
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<Output = Self> +
Add<Output = Self> +
Mul<Output = Self> +
- DivAssign
+ DivAssign +
+ fmt::Display
{}
impl Number for i32 {}