logo
pub trait Transform {
    fn translate(&self, by: Point) -> Self;
fn translate_mut(&mut self, by: Point) -> &mut Self; }
Expand description

Transform operations

Required methods

Move the origin of an object by a given number of (x, y) pixels, returning a new object

Move the origin of an object by a given number of (x, y) pixels, mutating the object in place

Implementors