Enum nyx_space::cosmic::EulerRotation
source · pub enum EulerRotation {
R1(f64),
R2(f64),
R3(f64),
}
Expand description
Defines an Euler rotation, angle must be in radians
Variants§
Implementations§
source§impl EulerRotation
impl EulerRotation
pub fn r1_from_degrees(angle_deg: f64) -> Self
pub fn r2_from_degrees(angle_deg: f64) -> Self
pub fn r3_from_degrees(angle_deg: f64) -> Self
Trait Implementations§
source§impl Clone for EulerRotation
impl Clone for EulerRotation
source§fn clone(&self) -> EulerRotation
fn clone(&self) -> EulerRotation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EulerRotation
impl Debug for EulerRotation
source§impl ParentRotation for EulerRotation
impl ParentRotation for EulerRotation
impl Copy for EulerRotation
Auto Trait Implementations§
impl RefUnwindSafe for EulerRotation
impl Send for EulerRotation
impl Sync for EulerRotation
impl Unpin for EulerRotation
impl UnwindSafe for EulerRotation
Blanket Implementations§
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.