[][src]Trait arcs::algorithms::Scale

pub trait Scale {
    fn scale(&mut self, scale_factor: f64);

    fn scaled(&self, scale_factor: f64) -> Self
    where
        Self: Sized + Clone
, { ... } }

Something who's dimensions can be scaled uniformly.

Required methods

fn scale(&mut self, scale_factor: f64)

Scale the object in-place.

Loading content...

Provided methods

fn scaled(&self, scale_factor: f64) -> Self where
    Self: Sized + Clone

Convenience method for getting a scaled copy of this object.

Loading content...

Implementors

impl Scale for Viewport[src]

fn scale(&mut self, scale_factor: f64)[src]

Zoom the viewport, where a positive scale_factor will zoom in.

impl Scale for Arc[src]

impl<S: ScaleNonUniform> Scale for S[src]

Loading content...