Trait alga::linear::Transformation
[−]
[src]
pub trait Transformation<E: EuclideanSpace>: Group<Multiplicative> { fn transform_point(&self, pt: &E) -> E; fn transform_vector(&self, v: &E::Vector) -> E::Vector; fn inverse_transform_point(&self, pt: &E) -> E; fn inverse_transform_vector(&self, v: &E::Vector) -> E::Vector; }
A general transformation acting on an euclidean space.
Required Methods
fn transform_point(&self, pt: &E) -> E
Applies this group's action on a point from the euclidean space.
fn transform_vector(&self, v: &E::Vector) -> E::Vector
Applies this group's action on a vector from the euclidean space.
If v
is a vector and a, b
two point such that v = a - b
, the action ∘
on a vector
is defined as self ∘ v = (self × a) - (self × b)
.
fn inverse_transform_point(&self, pt: &E) -> E
Applies this group's inverse action on a point from the euclidean space.
fn inverse_transform_vector(&self, v: &E::Vector) -> E::Vector
Applies this group's inverse action on a vector from the euclidean space.
If v
is a vector and a, b
two point such that v = a - b
, the action ∘
on a vector
is defined as self ∘ v = (self × a) - (self × b)
.