Skip to main content

TransformGroup

Trait TransformGroup 

Source
pub trait TransformGroup: Sized {
    // Required methods
    fn identity() -> Self;
    fn compose(&self, inner: &Self) -> Self;
}
Expand description

A transformation representation closed under identity and composition.

compose(outer, inner) follows the same order as affine matrix multiplication: the inner transform is applied first, then outer.

Required Methods§

Source

fn identity() -> Self

The identity transformation.

Source

fn compose(&self, inner: &Self) -> Self

Compose self outside inner, returning self * inner.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl TransformGroup for DAffine3

Source§

fn identity() -> DAffine3

Source§

fn compose(&self, inner: &DAffine3) -> DAffine3

Implementors§