Struct vecmat::transform::Affine[][src]

pub struct Affine<T, const N: usize> { /* fields omitted */ }

Affine transformation.

Implementations

impl<T, const N: usize> Affine<T, N>[src]

pub fn new(linear: Linear<T, N>, shift: Shift<T, N>) -> Self[src]

Construct affine transformation from linear one and shift.

pub fn split(self) -> (Linear<T, N>, Shift<T, N>)[src]

Split into linear and shift components.

impl<T, const N: usize> Affine<T, N> where
    T: Copy
[src]

pub fn linear(&self) -> Linear<T, N>[src]

Linear component of the transformation.

pub fn shift(&self) -> Shift<T, N>[src]

Shift component of the transformation.

Trait Implementations

impl<T, const N: usize> AbsDiffEq<Affine<T, N>> for Affine<T, N> where
    T: AbsDiffEq<Epsilon = T> + Copy
[src]

type Epsilon = T

Used for specifying relative comparisons.

impl<T: Clone, const N: usize> Clone for Affine<T, N>[src]

impl<T: Copy, const N: usize> Copy for Affine<T, N>[src]

impl<T: Debug, const N: usize> Debug for Affine<T, N>[src]

impl<T, const N: usize> Distribution<Affine<T, N>> for Normal where
    Normal: Distribution<Linear<T, N>> + Distribution<Shift<T, N>>, 
[src]

impl<T, const N: usize> Distribution<Affine<T, N>> for Invertible where
    Invertible: Distribution<Linear<T, N>>,
    Normal: Distribution<Shift<T, N>>, 
[src]

impl<T: PartialEq, const N: usize> PartialEq<Affine<T, N>> for Affine<T, N>[src]

impl<T, const N: usize> StructuralPartialEq for Affine<T, N>[src]

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

Auto Trait Implementations

impl<T, const N: usize> RefUnwindSafe for Affine<T, N> where
    T: RefUnwindSafe

impl<T, const N: usize> Send for Affine<T, N> where
    T: Send

impl<T, const N: usize> Sync for Affine<T, N> where
    T: Sync

impl<T, const N: usize> Unpin for Affine<T, N> where
    T: Unpin

impl<T, const N: usize> UnwindSafe for Affine<T, N> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,