blob: c78c51eb61e8efd780d9da2b3567ad33b60b70a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
pub mod core;
pub mod camera;
mod scene;
use std::ops::{Add, Sub, Mul};
use std::cmp;
pub trait Number:
Copy +
cmp::PartialOrd +
Sub<Output = Self> +
Add<Output = Self> +
Mul<Output = Self>
{}
impl Number for usize {}
impl Number for i32 {}
impl Number for f32 {}
// Used throughout the program
type Float = f32;
|