Start creating Euler struct
This commit is contained in:
parent
aada68c23e
commit
0bc896581c
1 changed files with 21 additions and 0 deletions
21
src/euler.rs
Normal file
21
src/euler.rs
Normal 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 {}
|
Loading…
Reference in a new issue