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

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.

Methods

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> Clone for Basis3<S> where
    S: Clone
[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

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

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

type Epsilon = <S as ApproxEq>::Epsilon

Used for specifying relative comparisons.

fn relative_ne(
    &self,
    other: &Self,
    epsilon: Self::Epsilon,
    max_relative: Self::Epsilon
) -> bool
[src]

The inverse of ApproxEq::relative_eq.

fn ulps_ne(&self, other: &Self, epsilon: Self::Epsilon, max_ulps: u32) -> bool[src]

The inverse of ApproxEq::ulps_eq.

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

impl<S> From<Basis3<S>> for Quaternion<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]

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<S> AsRef<Matrix3<S>> for Basis3<S>[src]

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

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<'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<&'a Basis3<S>> for Basis3<S> where
    S: BaseFloat
[src]

type Output = Basis3<S>

The resulting type after applying the * operator.

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

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

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

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

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

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

fn rotate_point(&self, point: P) -> P[src]

Rotate a point using this rotation, by converting it to its representation as a vector. Read more

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

fn set_one(&mut self)[src]

Sets self to the multiplicative identity element of Self, 1.

fn is_one(&self) -> bool where
    Self: PartialEq<Self>, 
[src]

Returns true if self is equal to the multiplicative identity. Read more

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

Auto Trait Implementations

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

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

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

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]

impl<T> Style for T where
    T: Any + Debug + PartialEq<T>, 
[src]

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

impl<T> Content for T[src]

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

impl<T> Erased for T

impl<S> FromSample<S> for S[src]

impl<T, U> ToSample<U> for T where
    U: FromSample<T>, 
[src]

impl<S, T> Duplex<S> for T where
    T: FromSample<S> + ToSample<S>, 
[src]

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.