[][src]Trait valora::transforms::Translate

pub trait Translate: Sized {
    fn translate(self, translation: V2) -> Self;

    fn translate_along(self, direction: Angle, distance: f32) -> Self { ... }
}

A trait for spatially translatable types.

Required methods

fn translate(self, translation: V2) -> Self

Translate self by the given translation vector.

Loading content...

Provided methods

fn translate_along(self, direction: Angle, distance: f32) -> Self

Translate self along the given direction.

Loading content...

Implementors

impl Translate for Ellipse[src]

impl Translate for Ngon[src]

impl Translate for Polygon[src]

impl Translate for Rect[src]

impl Translate for P2[src]

Loading content...