aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
blob: 7066a80ad68dc67ff773ec917bfdc028b7d6953d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
mod vector;
mod bound;
mod camera;
mod spectrum;

use std::ops::{Sub, Mul};
use std::cmp;

pub trait Number:
    Copy +
    cmp::PartialOrd +
    Sub<Output = Self> +
    Mul<Output = Self>
{}

impl Number for usize {}
impl Number for i32 {}
impl Number for f32 {}

// Used throughout the program
type Float = f32;