Trait Transformation

Source
pub trait Transformation {
    // Required methods
    fn transform_point(&self, point: Point) -> Point;
    fn transform_vector(&self, vector: Vector) -> Vector;
}
Expand description

A trait for transformations in 2-dimensional Euclidian space.

Required Methods§

Source

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

Applies self to the given point.

Source

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

Applies self to the given vector.

Implementors§