Skip to main content

Rotation

Type Alias Rotation 

Source
pub type Rotation = Quat;
Expand description

The rotation type.

Aliased Type§

pub struct Rotation(/* private fields */);

Trait Implementations§

Source§

impl RotationOps<f32> for Rotation

Available on crate feature dim3 only.
Source§

fn to_mat(self) -> Mat3

Converts this rotation to a rotation matrix.
Source§

fn inverse(self) -> Self

Returns the inverse of this rotation.
Source§

fn diff_conj1_2(&self, rhs: &Self) -> Mat3

Compute the differential of inv(q1) * q2.
Source§

fn diff_conj1_2_tr(&self, rhs: &Self) -> Mat3

Compute the transposed differential of inv(q1) * q2.
Source§

fn dot(&self, rhs: &Self) -> f32

Compute the dot product of two quaternions.
Source§

fn imag(&self) -> Vector

The imaginary part of the quaternion.
Source§

fn mul_assign_unchecked(&mut self, rhs: f32)

Multiply this quaternion by a scalar without renormalizing.