Skip to main content

AngularInertiaOps

Trait AngularInertiaOps 

Source
pub trait AngularInertiaOps<N>:
    Copy
    + Debug
    + Default {
    type AngVector;
    type AngMatrix;

    // Required methods
    fn inverse(&self) -> Self;
    fn transform_vector(&self, pt: Self::AngVector) -> Self::AngVector;
    fn into_matrix(self) -> Self::AngMatrix;
}
Expand description

Trait for angular inertia operations.

Required Associated Types§

Source

type AngVector

The angular vector type.

Source

type AngMatrix

The angular matrix type.

Required Methods§

Source

fn inverse(&self) -> Self

Returns the inverse of this angular inertia.

Source

fn transform_vector(&self, pt: Self::AngVector) -> Self::AngVector

Transforms a vector by this angular inertia.

Source

fn into_matrix(self) -> Self::AngMatrix

Converts this angular inertia into a matrix.

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.

Implementations on Foreign Types§

Source§

impl AngularInertiaOps<f32> for SdpMatrix3<f32>

Available on crate feature dim3 only.

Implementors§