pub struct Euler { /* private fields */ }Implementations
sourceimpl Euler
impl Euler
sourcepub fn init(&mut self, heading: f32, pitch: f32, roll: f32)
pub fn init(&mut self, heading: f32, pitch: f32, roll: f32)
Initializes self to represent a rotation of x_angle degrees
around the x axis, then y_angle degrees around the y_axis and
z_angle degrees around the z axis.
heading
Angle to rotate around an object’s y axis
pitch
Angle to rotate around an object’s x axis
roll
Angle to rotate around an object’s z axis
sourcepub fn init_from_matrix(&mut self, matrix: &Matrix)
pub fn init_from_matrix(&mut self, matrix: &Matrix)
Extracts a euler rotation from the given matrix and
initializses self with the component x, y and z rotation angles.
matrix
A Matrix containing a rotation, but no scaling,
mirroring or skewing.
Trait Implementations
sourceimpl PartialOrd<Euler> for Euler
impl PartialOrd<Euler> for Euler
sourcefn partial_cmp(&self, other: &Euler) -> Option<Ordering>
fn partial_cmp(&self, other: &Euler) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Eq for Euler
Auto Trait Implementations
impl RefUnwindSafe for Euler
impl Send for Euler
impl Sync for Euler
impl Unpin for Euler
impl UnwindSafe for Euler
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Clamp<T> for T where
T: PartialOrd<T>,
impl<T> Clamp<T> for T where
T: PartialOrd<T>,
fn clamped(self, min: T, max: T) -> T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value as a parameter of self.