pub trait Scalable {
    fn scale<T>(&mut self, factor: Vector<T>)
    where
        T: Scalar + Into<f32>
; fn set_scale<T>(&mut self, vec: Vector<T>)
    where
        T: Scalar + Into<f32>
; fn get_scale(&self) -> Vector<f32>; }

Required Methods

Scale the sprite from a factor

Set the scale of the sprite

Get the current scale

Implementors