ShiftTransform

Trait ShiftTransform 

Source
pub trait ShiftTransform {
    // Required method
    fn shift(&mut self, offset: DVec3) -> &mut Self;
}
Expand description

Shifting operations.

This trait is automatically implemented for DVec3 and [T] where T: ShiftTransform.

Required Methods§

Source

fn shift(&mut self, offset: DVec3) -> &mut Self

Shift the item by a given vector.

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.

Implementations on Foreign Types§

Source§

impl ShiftTransform for DVec3

Source§

fn shift(&mut self, shift: DVec3) -> &mut Self

Source§

impl<T: ShiftTransformExt> ShiftTransform for [T]

Source§

fn shift(&mut self, shift: DVec3) -> &mut Self

Source§

impl<T: ShiftTransformExt> ShiftTransform for Vec<T>

Source§

fn shift(&mut self, shift: DVec3) -> &mut Self

Implementors§