Skip to main content

Rotation

Type Alias Rotation 

Source
pub type Rotation = Rot2;
Expand description

The rotation type.

Aliased Type§

#[repr(C)]
pub struct Rotation { pub re: f32, pub im: f32, }

Fields§

§re: f32

Real part (cosine of the angle).

§im: f32

Imaginary part (sine of the angle).

Trait Implementations§

Source§

impl RotationOps<f32> for Rotation

Available on crate feature dim2 only.
Source§

fn to_mat(self) -> Matrix

Converts this rotation to a rotation matrix.
Source§

fn inverse(self) -> Self

Returns the inverse of this rotation.
Source§

fn imag(&self) -> f32

The imaginary part of the complex rotation.
Source§

fn angle(&self) -> f32

The angle of the rotation.