Enum ambient_api::global::glam::EulerRot
source · pub enum EulerRot {
ZYX,
ZXY,
YXZ,
YZX,
XYZ,
XZY,
}
Expand description
Euler rotation sequences.
The angles are applied starting from the right. E.g. XYZ will first apply the z-axis rotation.
YXZ can be used for yaw (y-axis), pitch (x-axis), roll (z-axis).
Variants§
ZYX
Intrinsic three-axis rotation ZYX
ZXY
Intrinsic three-axis rotation ZXY
YXZ
Intrinsic three-axis rotation YXZ
YZX
Intrinsic three-axis rotation YZX
XYZ
Intrinsic three-axis rotation XYZ
XZY
Intrinsic three-axis rotation XZY
Trait Implementations§
source§impl<'de> Deserialize<'de> for EulerRot
impl<'de> Deserialize<'de> for EulerRot
source§fn deserialize<D>(
deserializer: D
) -> Result<EulerRot, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<EulerRot, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for EulerRot
impl PartialEq for EulerRot
source§impl Serialize for EulerRot
impl Serialize for EulerRot
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for EulerRot
impl Eq for EulerRot
impl StructuralEq for EulerRot
impl StructuralPartialEq for EulerRot
Auto Trait Implementations§
impl RefUnwindSafe for EulerRot
impl Send for EulerRot
impl Sync for EulerRot
impl Unpin for EulerRot
impl UnwindSafe for EulerRot
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
source§impl<T> Downcast for T
impl<T> Downcast for T
source§impl<T> ElementComponentName for T
impl<T> ElementComponentName for T
source§fn element_component_name(&self) -> &'static str
fn element_component_name(&self) -> &'static str
Returns the name of the type implementing ElementComponent.
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.