diff options
author | Julian T <julian@jtle.dk> | 2021-02-03 15:34:17 +0100 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2021-02-03 15:34:17 +0100 |
commit | 8296be848319eecd43f94900d4d12414ec189166 (patch) | |
tree | d0adad5c05692a55e2957d02eb62666bd45e011f /src/lib.rs | |
parent | 32e719a517a6fea113f3e66e350c9aa60ddd98b9 (diff) |
Add simple perspective camera
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 {} |