Skip to main content

LayerScale

Trait LayerScale 

Source
pub trait LayerScale {
    // Required method
    fn scale(&mut self, x: f64, y: f64);
}
Expand description

Uniform or anisotropic scaling.

Required Methods§

Source

fn scale(&mut self, x: f64, y: f64)

Multiplies every X coordinate by x and every Y coordinate by y.

Implementations on Foreign Types§

Source§

impl LayerScale for (&CoordinateFormat, &mut Vec<Command>)

Source§

fn scale(&mut self, x: f64, y: f64)

Source§

impl LayerScale for CoordinateOffset

Source§

fn scale(&mut self, x: f64, y: f64)

Source§

impl LayerScale for Coordinates

Source§

fn scale(&mut self, x: f64, y: f64)

Implementors§