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