[−][src]Struct nova_math::quaternion::TQuat
Implementations
impl<T: Real> TQuat<T>
[src]
pub fn new(scalar: T, vector: TVec3<T>) -> Self
[src]
pub fn identity() -> Self
[src]
pub fn from_euler_angles(angles: TVec3<T>) -> Self
[src]
pub fn from_angle_axis(angle: T, axis: TVec3<T>) -> TQuat<T>
[src]
pub fn as_angle_axis(&self) -> (T, TVec3<T>)
[src]
pub fn conjugate(&self) -> TQuat<T>
[src]
pub fn scalar(&self) -> T
[src]
pub fn scalar_mut(&mut self) -> &mut T
[src]
pub fn vector(&self) -> TVec3<T>
[src]
Trait Implementations
impl<T: Clone + Real> Clone for TQuat<T>
[src]
impl<T: Copy + Real> Copy for TQuat<T>
[src]
impl<T: Debug + Real> Debug for TQuat<T>
[src]
impl<T: Real> Into<TMat4x4<T>> for TQuat<T>
[src]
impl<T: Real> Inverse for TQuat<T>
[src]
impl<T: Real> InverseAssign for TQuat<T>
[src]
fn inverse_assign(&mut self)
[src]
impl<T: Real> Mul<TQuat<T>> for TQuat<T>
[src]
type Output = TQuat<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: TQuat<T>) -> Self::Output
[src]
impl<T: Real> Mul<TVec3<T>> for TQuat<T>
[src]
type Output = TVec3<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: TVec3<T>) -> Self::Output
[src]
impl<T: Real> MulAssign<TQuat<T>> for TQuat<T>
[src]
fn mul_assign(&mut self, rhs: TQuat<T>)
[src]
impl<T: Real> Normalize for TQuat<T>
[src]
impl<T: Real> NormalizeAssign for TQuat<T>
[src]
fn normalize_assign(&mut self)
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for TQuat<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for TQuat<T> where
T: Send,
T: Send,
impl<T> Sync for TQuat<T> where
T: Sync,
T: Sync,
impl<T> Unpin for TQuat<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for TQuat<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,