Start creating Euler struct

This commit is contained in:
Brendan Zabarauskas 2012-11-14 18:27:10 +10:00
parent aada68c23e
commit 0bc896581c

21
src/euler.rs Normal file
View file

@ -0,0 +1,21 @@
// TODO
pub trait EulerAngles<T> {
// to_mat3
// to_mat4
// to_quat
}
pub struct Euler<T> { x: T, y: T, z: T } // pitch / yaw / roll
pub mod Euler {
#[inline(always)]
pub pure fn new<T>(x: T, y: T, z: T) -> Euler<T> {
Euler { x: move x, y: move y, z: move z }
}
// from_mat3
// from_quat
}
pub impl<T> Euler<T>: EulerAngles {}