pub trait Transform<T> {
    fn identity() -> Self;
    fn inv(self) -> Self;
    fn apply(&self, pos: T) -> T;
    fn deriv(&self, pos: T, dir: T) -> T;
    fn chain(self, other: Self) -> Self;
}
Expand description

General tansformation trait.

It’s assumed that transfomation is a group.

Required Methods

Identity transformation.

Inverse transformation.

Perform the transformation itself.

Find transformation directional derivative at specified point.

Chain two transformations into a new one.

C = A.chain(B) means that C(x) = A(B(x)).

Implementors