aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
blob: 1d438551701d21b22fa1b14b5686a8a0f119a324 (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 bounding;
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;