[][src]Struct libraymarcher::Quaternion

pub struct Quaternion { /* fields omitted */ }

Quaternion type, a 4 dimensional number type.

Implementations

impl Quaternion[src]

pub fn new(r: f64, i: f64, j: f64, k: f64) -> Self[src]

Constructs a new Quaternion. r is the real value. i, j, k are nonreal.

pub fn magnitude(&self) -> f64[src]

Magnuitude of this Quaternion, using the Euclidean norm.

Trait Implementations

impl Add<Quaternion> for Quaternion[src]

type Output = Quaternion

The resulting type after applying the + operator.

impl Clone for Quaternion[src]

impl Copy for Quaternion[src]

impl Debug for Quaternion[src]

impl Mul<Quaternion> for Quaternion[src]

type Output = Quaternion

The resulting type after applying the * operator.

impl Mul<Quaternion> for f64[src]

type Output = Quaternion

The resulting type after applying the * operator.

Auto Trait Implementations

impl RefUnwindSafe for Quaternion

impl Send for Quaternion

impl Sync for Quaternion

impl Unpin for Quaternion

impl UnwindSafe for Quaternion

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.