Struct graphene::Euler [−][src]
pub struct Euler(_);
Expand description
Describe a rotation using Euler angles.
The contents of the Euler structure are private
and should never be accessed directly.
Implementations
Retrieves the order used to apply the rotations described in the
Euler structure, when converting to and from other
structures, like Quaternion and Matrix.
This function does not return the EulerOrder::Default
enumeration value; it will return the effective order of rotation
instead.
Returns
the order used to apply the rotations
Initializes a Euler using the given normalized quaternion.
If the Quaternion q is None, the Euler will
be initialized with all angles set to 0.
q
a normalized Quaternion
order
the order used to apply the rotations
Returns
the initialized Euler
pub fn init_from_radians(
&mut self,
x: f32,
y: f32,
z: f32,
order: EulerOrder
) -> Option<Euler>
pub fn init_from_radians(
&mut self,
x: f32,
y: f32,
z: f32,
order: EulerOrder
) -> Option<Euler>Converts a Euler into a transformation matrix expressing
the extrinsic composition of rotations described by the Euler angles.
The rotations are applied over the reference frame axes in the order
associated with the Euler; for instance, if the order
used to initialize self is EulerOrder::Xyz:
- the first rotation moves the body around the X axis with an angle φ
- the second rotation moves the body around the Y axis with an angle of ϑ
- the third rotation moves the body around the Z axis with an angle of ψ
The rotation sign convention is right-handed, to preserve compatibility between Euler-based, quaternion-based, and angle-axis-based rotations.
Returns
res
return location for a Matrix
Trait Implementations
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Returns the type identifier of Self.
Auto Trait Implementations
impl RefUnwindSafe for Eulerimpl UnwindSafe for EulerBlanket Implementations
Mutably borrows from an owned value. Read more
impl<'a, T, C> FromValueOptional<'a> for T where
C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError>,
T: FromValue<'a, Checker = C>,