[][src]Struct aljabar::Quaternion

pub struct Quaternion<T> {
    pub s: T,
    pub v: Vector3<T>,
}

A Quaternion, composed of a scalar and a Vector3.

Fields

s: Tv: Vector3<T>

Methods

impl<T> Quaternion<T>[src]

pub const fn new(w: T, xi: T, yj: T, zk: T) -> Quaternion<T>[src]

impl<T> Quaternion<T> where
    T: Clone
[src]

pub fn s(&self) -> T[src]

Alias for .s.clone()

Trait Implementations

impl<T> Rotation<3> for Quaternion<T> where
    T: Real + Clone
[src]

type Scalar = T

impl<T> From<Euler<T>> for Quaternion<T> where
    T: Angle + Clone
[src]

impl<T> Div<T> for Quaternion<T> where
    T: Real + Clone
[src]

type Output = Quaternion<T>

The resulting type after applying the / operator.

impl<T> Mul<T> for Quaternion<T> where
    T: Real + Clone
[src]

type Output = Quaternion<T>

The resulting type after applying the * operator.

impl<T> Mul<Quaternion<T>> for Quaternion<T> where
    T: Real + Clone
[src]

type Output = Quaternion<T>

The resulting type after applying the * operator.

impl<T> Mul<Vector<T, 3>> for Quaternion<T> where
    T: Real + Clone
[src]

type Output = Vector3<T>

The resulting type after applying the * operator.

impl<T> MulAssign<T> for Quaternion<T> where
    T: Real + Clone
[src]

impl<T> DivAssign<T> for Quaternion<T> where
    T: Real + Clone
[src]

Auto Trait Implementations

impl<T> Send for Quaternion<T> where
    T: Send

impl<T> Sync for Quaternion<T> where
    T: Sync

impl<T> Unpin for Quaternion<T> where
    T: Unpin

impl<T> UnwindSafe for Quaternion<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for Quaternion<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]