Trait Scale

Source
pub trait Scale {
    // Required methods
    fn scale(&self) -> f32;
    fn set_scale(&mut self, value: f32);
}
Expand description

Represents an object that can be scaled.

Required Methods§

Source

fn scale(&self) -> f32

Returns the scale of the object.

Source

fn set_scale(&mut self, value: f32)

Sets the scale of the object.

Implementors§