[][src]Trait makepad_geometry::Transformation

pub trait Transformation {
    fn transform_point(&self, point: Point) -> Point;
fn transform_vector(&self, vector: Vector) -> Vector; }

A trait for transformations in 2-dimensional Euclidian space.

Required methods

fn transform_point(&self, point: Point) -> Point

Applies self to the given point.

fn transform_vector(&self, vector: Vector) -> Vector

Applies self to the given vector.

Loading content...

Implementors

impl Transformation for AffineTransformation[src]

impl Transformation for LinearTransformation[src]

Loading content...