Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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