Skip to main content

Transformable

Trait Transformable 

Source
pub trait Transformable {
    // Required method
    fn transform(
        x: Self,
        y: Self,
        z: Self,
        mat: Matrix<f32, Const<4>, Const<4>, ArrayStorage<f32, 4, 4>>,
    ) -> (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: Matrix<f32, Const<4>, Const<4>, ArrayStorage<f32, 4, 4>>, ) -> (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: Matrix<f32, Const<4>, Const<4>, ArrayStorage<f32, 4, 4>>, ) -> (f32, f32, f32)

Implementors§