From 2e0521f4e5489d28414d9865dd58e716c50f25d4 Mon Sep 17 00:00:00 2001 From: Brendan Zabarauskas Date: Sat, 8 Dec 2012 21:10:42 +1000 Subject: [PATCH] Remove Euler type --- src/angle.rs | 10 ---------- src/gltypes.rs | 9 +-------- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/src/angle.rs b/src/angle.rs index 3718115..aef9cf9 100644 --- a/src/angle.rs +++ b/src/angle.rs @@ -218,14 +218,4 @@ pub impl Degrees: Ord { pub impl Degrees: ToStr { pure fn to_str() -> ~str { fmt!("%?\xB0", *self) } -} - - - - - -pub struct Euler { - x: Radians, // pitch - y: Radians, // yaw - z: Radians, // roll } \ No newline at end of file diff --git a/src/gltypes.rs b/src/gltypes.rs index f3bee41..d3307ac 100644 --- a/src/gltypes.rs +++ b/src/gltypes.rs @@ -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; /// single-precision floating-point euler angles (pitch/yaw/roll) -pub type deuler = Euler; /// 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.