Remove Euler type

This commit is contained in:
Brendan Zabarauskas 2012-12-08 21:10:42 +10:00
parent 4bd14e4d50
commit 2e0521f4e5
2 changed files with 1 additions and 18 deletions

View file

@ -218,14 +218,4 @@ pub impl<T:Copy Float> Degrees<T>: Ord {
pub impl<T> Degrees<T>: ToStr {
pure fn to_str() -> ~str { fmt!("%?\xB0", *self) }
}
pub struct Euler<T> {
x: Radians<T>, // pitch
y: Radians<T>, // yaw
z: Radians<T>, // roll
}

View file

@ -22,7 +22,7 @@
use core::sys::size_of;
use angle::{Angle, Radians, Degrees, Euler};
use angle::{Angle, Radians, Degrees};
use color::color::{RGB, RGBA, HSV, HSVA};
use mat::{Matrix, Mat2, Mat3, Mat4};
use vec::{Vector, NumericVector, Vec2, Vec3, Vec4};
@ -398,13 +398,6 @@ pub impl ddegrees {
}
// Axis rotation aliases. These are not present in the GLSL specification, but
// they follow roughly the same nomenclature.
pub type euler = Euler<f32>; /// single-precision floating-point euler angles (pitch/yaw/roll)
pub type deuler = Euler<f64>; /// double-precision floating-point euler angles (pitch/yaw/roll)
// Quaternion aliases. These are not present in the GLSL specification, but
// they follow roughly the same nomenclature.