Skip to main content

RotationOps

Trait RotationOps 

Source
pub trait RotationOps<N: ScalarType>:
    Copy
    + Debug
    + Mul<N::Rotation, Output = N::Rotation>
    + Mul<N::Vector, Output = N::Vector> {
    // Required methods
    fn to_mat(self) -> N::Matrix;
    fn inverse(self) -> Self;
    fn imag(&self) -> N;
    fn angle(&self) -> N;
}
Expand description

Trait implemented by 2D rotation types (UnitComplex).

Required Methods§

Source

fn to_mat(self) -> N::Matrix

Converts this rotation to a rotation matrix.

Source

fn inverse(self) -> Self

Returns the inverse of this rotation.

Source

fn imag(&self) -> N

The imaginary part of the complex rotation.

Source

fn angle(&self) -> N

The angle of the rotation.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl RotationOps<f32> for Rotation

Available on crate feature dim2 only.