Skip to main content

Transformable

Trait Transformable 

Source
pub trait Transformable {
    // Required method
    fn transform(
        x: Self,
        y: Self,
        z: Self,
        mat: Matrix4<f32>,
    ) -> (Self, Self, Self)
       where Self: Sized;
}
Expand description

Trait for types that can be transformed by a 4x4 homogeneous transform matrix

Required Methods§

Source

fn transform(x: Self, y: Self, z: Self, mat: Matrix4<f32>) -> (Self, Self, Self)
where Self: Sized,

Apply the given transform to an (x, y, z) position

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Transformable for f32

Source§

fn transform(x: f32, y: f32, z: f32, mat: Matrix4<f32>) -> (f32, f32, f32)

Implementors§