Trait vecmat::transform::Transform[][src]

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; }

General N-dimensional tansformation trait.

It’s assumed that transfomation is a group.

Required methods

fn identity() -> Self[src]

Identity transformation.

fn inv(self) -> Self[src]

Inverse transformation.

fn apply(&self, pos: T) -> T[src]

Perform the transformation itself.

fn deriv(&self, pos: T, dir: T) -> T[src]

Find transformation directional derivative at specified point.

fn chain(self, other: Self) -> Self[src]

Chain two transformations into a new one.

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

Loading content...

Implementors

impl<A, B, T> Transform<T> for Chain<A, B, T> where
    A: Transform<T> + Reorder<B, T>,
    B: Transform<T> + Reorder<A, T>,
    T: Copy
[src]

impl<T> Transform<Complex<T>> for Moebius<Complex<T>> where
    T: Neg<Output = T> + Num + Copy
[src]

impl<T> Transform<Quaternion<T>> for Moebius<Complex<T>> where
    T: Neg<Output = T> + Num + NumCast + Copy
[src]

impl<T> Transform<Vector<T, 2_usize>> for Rotation2<T> where
    T: Neg<Output = T> + Num + Copy
[src]

impl<T> Transform<Vector<T, 3_usize>> for Rotation3<T> where
    T: Neg<Output = T> + Num + Copy
[src]

impl<T, const N: usize> Transform<Vector<T, N>> for Linear<T, N> where
    T: Neg<Output = T> + Num + Copy
[src]

impl<T, const N: usize> Transform<Vector<T, N>> for Shift<T, N> where
    T: Neg<Output = T> + Num + Copy
[src]

Loading content...