Skip to main content

IsMatrix4Transformable

Trait IsMatrix4Transformable 

Source
pub trait IsMatrix4Transformable {
    // Required methods
    fn transformed(&self, m: &Matrix4) -> Self;
    fn transform(&mut self, m: &Matrix4);
}
Expand description

IsMatrix4Transformable trait used for types that can be transformed by a 4x4 Matrix

Required Methods§

Source

fn transformed(&self, m: &Matrix4) -> Self

Should return self transformed by the Matrix

Source

fn transform(&mut self, m: &Matrix4)

Should transform self by the Matrix

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§