Trait libreda_db::layout::prelude::traits::Mirror

source ·
pub trait Mirror<T> {
    // Required methods
    fn mirror_x(&self) -> Self;
    fn mirror_y(&self) -> Self;
}
Expand description

Mirror at the x or y axis.

Required Methods§

source

fn mirror_x(&self) -> Self

Mirror this shape at the x-axis.

source

fn mirror_y(&self) -> Self

Mirror this shape at the y-axis.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<S, T> Mirror<T> for S
where T: Copy + Zero + Sub<Output = T>, S: MapPointwise<T>,