Trait iron_shapes::traits::Scale

source ·
pub trait Scale<T> {
    // Required method
    fn scale(&self, factor: T) -> Self;
}
Expand description

Scale the geometrical shape. Scaling center is the origin (0, 0).

Required Methods§

source

fn scale(&self, factor: T) -> Self

Scale the geometrical shape. Scaling center is the origin (0, 0).

Implementors§

source§

impl<S, T> Scale<T> for Swhere T: Copy + Mul<Output = T>, S: MapPointwise<T>,