pub struct Euler(/* private fields */);
Implementations§
Source§impl 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§
Source§impl Ord for Euler
impl Ord for Euler
Source§impl PartialOrd for Euler
impl PartialOrd for Euler
Source§impl StaticType for Euler
impl StaticType for Euler
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for Euler
Auto Trait Implementations§
impl Freeze for Euler
impl RefUnwindSafe for Euler
impl !Send for Euler
impl !Sync for Euler
impl Unpin for Euler
impl UnwindSafe for Euler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more