Trait libreda_db::prelude::traits::Translate

source ·
pub trait Translate<T> {
    // Required method
    fn translate(&self, v: Vector<T>) -> Self;
}
Expand description

Translate the geometrical object by a vector.

Required Methods§

source

fn translate(&self, v: Vector<T>) -> Self

Translate the geometrical object by a vector v.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<S, T> Translate<T> for S
where T: Copy + Add<Output = T>, S: MapPointwise<T>,