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

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§