Struct vecmat::transform::Affine [−][src]
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]
T: Copy,
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]
T: AbsDiffEq<Epsilon = T> + Copy,
type Epsilon = T
Used for specifying relative comparisons.
fn default_epsilon() -> Self::Epsilon
[src]
fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
[src]
pub fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
[src]
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]
Normal: Distribution<Linear<T, N>> + Distribution<Shift<T, N>>,
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Affine<T, N>
[src]
pub fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
[src]
R: Rng,
impl<T, const N: usize> Distribution<Affine<T, N>> for Invertible where
Invertible: Distribution<Linear<T, N>>,
Normal: Distribution<Shift<T, N>>,
[src]
Invertible: Distribution<Linear<T, N>>,
Normal: Distribution<Shift<T, N>>,
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Affine<T, N>
[src]
pub fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
[src]
R: Rng,
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]
T: Neg<Output = T> + Num + Copy,
Auto Trait Implementations
impl<T, const N: usize> RefUnwindSafe for Affine<T, N> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, const N: usize> Send for Affine<T, N> where
T: Send,
T: Send,
impl<T, const N: usize> Sync for Affine<T, N> where
T: Sync,
T: Sync,
impl<T, const N: usize> Unpin for Affine<T, N> where
T: Unpin,
T: Unpin,
impl<T, const N: usize> UnwindSafe for Affine<T, N> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,