aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
blob: 05fbff3dea64966d8092e54e5a693115903957f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
pub mod core;
pub mod camera;
mod scene;

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;