aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
blob: 96c9212a688005fdcc324474e0a62fa2b6e5bc16 (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 vector;
pub mod bound;
pub mod camera;
mod spectrum;

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;