Struct nannou::math::Basis3[][src]

pub struct Basis3<S> { /* fields omitted */ }

A three-dimensional rotation matrix.

The matrix is guaranteed to be orthogonal, so some operations, specifically inversion, can be implemented more efficiently than the implementations for math::Matrix3. To ensure orthogonality is maintained, the operations have been restricted to a subset of those implemented on Matrix3.

Implementations

impl<S> Basis3<S> where
    S: BaseFloat
[src]

pub fn from_quaternion(quaternion: &Quaternion<S>) -> Basis3<S>[src]

Create a new rotation matrix from a quaternion.

Trait Implementations

impl<S> AbsDiffEq<Basis3<S>> for Basis3<S> where
    S: BaseFloat
[src]

type Epsilon = <S as AbsDiffEq<S>>::Epsilon

Used for specifying relative comparisons.

impl<S> AsRef<Matrix3<S>> for Basis3<S>[src]

impl<S> Clone for Basis3<S> where
    S: Clone
[src]

impl<S> Copy for Basis3<S> where
    S: Copy
[src]

impl<S> Debug for Basis3<S> where
    S: Debug
[src]

impl<'de, S> Deserialize<'de> for Basis3<S> where
    S: Deserialize<'de>, 
[src]

impl<S> From<Basis3<S>> for Quaternion<S> where
    S: BaseFloat
[src]

impl<S> From<Basis3<S>> for Matrix3<S> where
    S: BaseFloat
[src]

impl<A> From<Euler<A>> for Basis3<<A as Angle>::Unitless> where
    A: Angle + Into<Rad<<A as Angle>::Unitless>>, 
[src]

pub fn from(src: Euler<A>) -> Basis3<<A as Angle>::Unitless>[src]

Create a three-dimensional rotation matrix from a set of euler angles.

impl<S> From<Quaternion<S>> for Basis3<S> where
    S: BaseFloat
[src]

impl<'a, S> Mul<&'a Basis3<S>> for Basis3<S> where
    S: BaseFloat
[src]

type Output = Basis3<S>

The resulting type after applying the * operator.

impl<'a, 'b, S> Mul<&'a Basis3<S>> for &'b Basis3<S> where
    S: BaseFloat
[src]

type Output = Basis3<S>

The resulting type after applying the * operator.

impl<'a, S> Mul<Basis3<S>> for &'a Basis3<S> where
    S: BaseFloat
[src]

type Output = Basis3<S>

The resulting type after applying the * operator.

impl<S> Mul<Basis3<S>> for Basis3<S> where
    S: BaseFloat
[src]

type Output = Basis3<S>

The resulting type after applying the * operator.

impl<S> One for Basis3<S> where
    S: BaseFloat
[src]

impl<S> PartialEq<Basis3<S>> for Basis3<S> where
    S: PartialEq<S>, 
[src]

impl<'a, S> Product<&'a Basis3<S>> for Basis3<S> where
    S: 'a + BaseFloat
[src]

impl<S> Product<Basis3<S>> for Basis3<S> where
    S: BaseFloat
[src]

impl<S> RelativeEq<Basis3<S>> for Basis3<S> where
    S: BaseFloat
[src]

impl<S> Rotation<Point3<S>> for Basis3<S> where
    S: BaseFloat
[src]

impl<S> Rotation3<S> for Basis3<S> where
    S: BaseFloat
[src]

impl<S> Serialize for Basis3<S> where
    S: Serialize
[src]

impl<S> StructuralPartialEq for Basis3<S>[src]

impl<S> UlpsEq<Basis3<S>> for Basis3<S> where
    S: BaseFloat
[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for Basis3<S> where
    S: RefUnwindSafe

impl<S> Send for Basis3<S> where
    S: Send

impl<S> Sync for Basis3<S> where
    S: Sync

impl<S> Unpin for Basis3<S> where
    S: Unpin

impl<S> UnwindSafe for Basis3<S> where
    S: UnwindSafe

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    T: Component + Float,
    D: AdaptFrom<S, Swp, Dwp, T>,
    Swp: WhitePoint,
    Dwp: WhitePoint
[src]

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, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Downcast<T> for T

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

impl<T> Instrument for T[src]

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

impl<T> One for T where
    T: One

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> SetParameter for T

impl<T> Style for T where
    T: Any + Debug + PartialEq<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.

impl<T> Upcast<T> for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,