Trait rust_3d::traits::IsScalable [] [src]

pub trait IsScalable {
    fn scale(&mut self, factor: Positive);
}

IsScalable trait used for types that can have their size scaled by a factor

Required Methods

Should scale by the given factor. 0.5 -> half size, 2.0 double the size without moving the position/center

Implementors