Trait libreda_db::layout::prelude::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).

Object Safety§

This trait is not object safe.

Implementors§

source§

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