Struct cgmath::Basis3
[−]
[src]
pub struct Basis3<S> {
// some 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 subeset of those implemented on Matrix3.
Methods
impl<S: BaseFloat> Basis3<S>
fn from_quaternion(quaternion: &Quaternion<S>) -> Basis3<S>
Create a new rotation matrix from a quaternion.