Struct cgmath::Basis3 [−][src]
pub struct Basis3<S> { /* fields omitted */ }
Expand description
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
Create a new rotation matrix from a quaternion.
Trait Implementations
The default tolerance to use when testing values that are close together. Read more
A test for equality that uses the absolute difference to compute the approximate equality of two numbers. Read more
The inverse of AbsDiffEq::abs_diff_eq
.
Performs the conversion.
Performs the conversion.
The default relative tolerance for testing values that are far-apart. Read more
A test for equality that uses a relative comparison if the values are far apart.
The inverse of RelativeEq::relative_eq
.
Create a rotation to a given direction with an ‘up’ vector.
Create a shortest rotation to transform vector ‘a’ into ‘b’. Both given vectors are assumed to have unit length. Read more
Rotate a vector using this rotation.
Create a new rotation which “un-does” this rotation. That is,
r * r.invert()
is the identity. Read more
Rotate a point using this rotation, by converting it to its representation as a vector. Read more
The default ULPs to tolerate when testing values that are far-apart. Read more
A test for equality that uses units in the last place (ULP) if the values are far apart.
Auto Trait Implementations
impl<S> RefUnwindSafe for Basis3<S> where
S: RefUnwindSafe,
impl<S> UnwindSafe for Basis3<S> where
S: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more