use std::fmt::Debug;
#[derive(Copy, Clone, Debug, PartialEq, PartialOrd)]
pub struct Vector(pub f32, pub f32, pub f32);
#[derive(Copy, Clone, Debug, PartialEq, PartialOrd)]
pub struct Color(pub f32, pub f32, pub f32);
pub trait Vertex : Clone + Debug + PartialEq + PartialOrd {
fn position(&self) -> Vector;
}
#[derive(Debug, PartialEq, PartialOrd)]
pub struct Triangle<V: Vertex> {
pub vertices: [V; 3],
}
impl Vertex for Vector {
fn position(&self) -> Vector { *self }
}