[−][src]Struct cgmath::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: BaseFloat> Basis3<S>`[src]

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

Create a new rotation matrix from a quaternion.

Trait Implementations

`impl<S: BaseFloat> Rotation<Point3<S>> for Basis3<S>`[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<A: Angle> From<Euler<A>> for Basis3<A::Unitless> where    A: Into<Rad<<A as Angle>::Unitless>>, `[src]

`fn from(src: Euler<A>) -> Basis3<A::Unitless>`[src]

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

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

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

Performs copy-assignment from `source`. Read more

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

`type Output = Basis3<S>`

The resulting type after applying the `*` operator.

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

`type Output = Basis3<S>`

The resulting type after applying the `*` operator.

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

`type Output = Basis3<S>`

The resulting type after applying the `*` operator.

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

`type Output = Basis3<S>`

The resulting type after applying the `*` operator.

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

`type Epsilon = S::Epsilon`

Used for specifying relative comparisons.

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

The inverse of `ApproxEq::abs_diff_eq`.

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

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

The inverse of `ApproxEq::relative_eq`.

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

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

The inverse of `ApproxEq::ulps_eq`.

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

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

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

Blanket Implementations

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

`type Error = !`

🔬 This is a nightly-only experimental API. (`try_from`)

The type returned in the event of a conversion error.

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

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

🔬 This is a nightly-only experimental API. (`try_from`)

The type returned in the event of a conversion error.