pub struct Euler {
pub x: f32,
pub y: f32,
pub z: f32,
pub order: RotationOrder,
}Expand description
Euler angles in radians plus a rotation order.
Fields§
§x: f32Rotation around X in radians.
y: f32Rotation around Y in radians.
z: f32Rotation around Z in radians.
order: RotationOrderRotation order.
Implementations§
Source§impl Euler
impl Euler
Sourcepub const fn new(x: f32, y: f32, z: f32, order: RotationOrder) -> Self
pub const fn new(x: f32, y: f32, z: f32, order: RotationOrder) -> Self
Creates Euler angles from components.
Sourcepub fn from_quat(q: Quat, order: RotationOrder) -> Self
pub fn from_quat(q: Quat, order: RotationOrder) -> Self
Extracts Euler angles from a quaternion.
Sourcepub fn from_mat4(matrix: Mat4, order: RotationOrder) -> Self
pub fn from_mat4(matrix: Mat4, order: RotationOrder) -> Self
Extracts Euler angles from a rotation matrix.
Trait Implementations§
impl Copy for Euler
impl StructuralPartialEq 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 UnsafeUnpin 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