pub struct TyQuaternion<T> {
pub x: T,
pub y: T,
pub z: T,
pub w: T,
}Expand description
A quaternion (x, y, z, w) generic over its component type T.
See TyQuaternionF32 and TyQuaternionF64 for the common instantiations.
Fields§
§x: TThe x component.
y: TThe y component.
z: TThe z component.
w: TThe w (scalar) component.
Implementations§
Source§impl<T> TyQuaternion<T>
impl<T> TyQuaternion<T>
Source§impl TyQuaternion<f32>
impl TyQuaternion<f32>
Trait Implementations§
Source§impl<T: Clone> Clone for TyQuaternion<T>
impl<T: Clone> Clone for TyQuaternion<T>
Source§fn clone(&self) -> TyQuaternion<T>
fn clone(&self) -> TyQuaternion<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T: Copy> Copy for TyQuaternion<T>
Source§impl<T: Debug> Debug for TyQuaternion<T>
impl<T: Debug> Debug for TyQuaternion<T>
Source§impl Default for TyQuaternion<f32>
impl Default for TyQuaternion<f32>
Source§impl Default for TyQuaternion<f64>
impl Default for TyQuaternion<f64>
Source§impl<T: PartialEq> PartialEq for TyQuaternion<T>
impl<T: PartialEq> PartialEq for TyQuaternion<T>
Source§fn eq(&self, other: &TyQuaternion<T>) -> bool
fn eq(&self, other: &TyQuaternion<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<T: PartialEq> StructuralPartialEq for TyQuaternion<T>
Auto Trait Implementations§
impl<T> Freeze for TyQuaternion<T>where
T: Freeze,
impl<T> RefUnwindSafe for TyQuaternion<T>where
T: RefUnwindSafe,
impl<T> Send for TyQuaternion<T>where
T: Send,
impl<T> Sync for TyQuaternion<T>where
T: Sync,
impl<T> Unpin for TyQuaternion<T>where
T: Unpin,
impl<T> UnsafeUnpin for TyQuaternion<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for TyQuaternion<T>where
T: UnwindSafe,
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