pub struct FusionQuaternion {
pub w: f32,
pub x: f32,
pub y: f32,
pub z: f32,
}
Fields§
§w: f32
§x: f32
§y: f32
§z: f32
Implementations§
Source§impl FusionQuaternion
impl FusionQuaternion
pub fn identity() -> Self
pub fn normalize(&self) -> Self
pub fn euler(self) -> FusionEuler
pub fn rotation(self) -> FusionMatrix
Trait Implementations§
Source§impl Add for FusionQuaternion
impl Add for FusionQuaternion
Source§impl Clone for FusionQuaternion
impl Clone for FusionQuaternion
Source§fn clone(&self) -> FusionQuaternion
fn clone(&self) -> FusionQuaternion
Returns a duplicate 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 From<FusionQuaternion> for FusionMatrix
impl From<FusionQuaternion> for FusionMatrix
Source§fn from(q: FusionQuaternion) -> Self
fn from(q: FusionQuaternion) -> Self
Converts to this type from the input type.
Source§impl Mul<FusionVector> for FusionQuaternion
impl Mul<FusionVector> for FusionQuaternion
Source§type Output = FusionQuaternion
type Output = FusionQuaternion
The resulting type after applying the
*
operator.Source§impl Mul<f32> for FusionQuaternion
impl Mul<f32> for FusionQuaternion
Source§impl Mul for FusionQuaternion
impl Mul for FusionQuaternion
impl Copy for FusionQuaternion
Auto Trait Implementations§
impl Freeze for FusionQuaternion
impl RefUnwindSafe for FusionQuaternion
impl Send for FusionQuaternion
impl Sync for FusionQuaternion
impl Unpin for FusionQuaternion
impl UnwindSafe for FusionQuaternion
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§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 moreSource§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).Source§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.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.