Trait libreda_db::prelude::Scale

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§

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

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

Implementors§

§

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