pub struct LinearAuto<S, V>(pub LinearIso<S, V, V, V::LinearEndo>)
where
    V: Module<S>,
    V::LinearEndo: MaybeSerDes,
    S: Ring;Expand description
Invertible linear endomorphism
Tuple Fields§
§0: LinearIso<S, V, V, V::LinearEndo>Implementations§
Source§impl<S, V> LinearAuto<S, V>
 
impl<S, V> LinearAuto<S, V>
pub fn mat(self) -> V::LinearEndo
Sourcepub fn is_orthonormal(&self) -> bool
 
pub fn is_orthonormal(&self) -> bool
Returns false if called with a matrix that is not orthogonal with determinant +/-1.
This method checks whether mat * mat^T == I and mat.determinant() == +/-1.
Sourcepub fn is_orthonormal_approx(&self) -> bool
 
pub fn is_orthonormal_approx(&self) -> bool
Returns None if called with a matrix that is not orthogonal with determinant
+/-1.
This method checks whether mat * mat^T == I and mat.determinant() == +/-1
(approximately using relative equality).
Sourcepub fn is_rotation(&self) -> bool
 
pub fn is_rotation(&self) -> bool
Checks whether the transformation is a special orthogonal matrix.
This method checks whether mat * mat^T == I and mat.determinant() == 1.
Sourcepub fn is_rotation_approx(&self) -> bool
 
pub fn is_rotation_approx(&self) -> bool
Checks whether the transformation is a special orthogonal matrix.
This method checks whether mat * mat^T == I and mat.determinant() == 1
(approximately using relative equality).
Trait Implementations§
Source§impl<S, V> Clone for LinearAuto<S, V>
 
impl<S, V> Clone for LinearAuto<S, V>
Source§fn clone(&self) -> LinearAuto<S, V>
 
fn clone(&self) -> LinearAuto<S, V>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl<S, V> Debug for LinearAuto<S, V>
 
impl<S, V> Debug for LinearAuto<S, V>
Source§impl<S, V> Default for LinearAuto<S, V>
 
impl<S, V> Default for LinearAuto<S, V>
Source§fn default() -> LinearAuto<S, V>
 
fn default() -> LinearAuto<S, V>
Returns the “default value” for a type. Read more
Source§impl<S, V> Deref for LinearAuto<S, V>
 
impl<S, V> Deref for LinearAuto<S, V>
Source§impl<S, V> Display for LinearAuto<S, V>where
    V: Module<S>,
    V::LinearEndo: MaybeSerDes,
    S: Ring,
    LinearIso<S, V, V, V::LinearEndo>: Display,
 
impl<S, V> Display for LinearAuto<S, V>where
    V: Module<S>,
    V::LinearEndo: MaybeSerDes,
    S: Ring,
    LinearIso<S, V, V, V::LinearEndo>: Display,
Source§impl<S> Div for LinearAuto<S, Vector2<S>>
 
impl<S> Div for LinearAuto<S, Vector2<S>>
Source§impl<S> Div for LinearAuto<S, Vector3<S>>
 
impl<S> Div for LinearAuto<S, Vector3<S>>
Source§impl<S> Div for LinearAuto<S, Vector4<S>>
 
impl<S> Div for LinearAuto<S, Vector4<S>>
Source§impl<S> DivAssign for LinearAuto<S, Vector2<S>>
 
impl<S> DivAssign for LinearAuto<S, Vector2<S>>
Source§fn div_assign(&mut self, rhs: Self)
 
fn div_assign(&mut self, rhs: Self)
Performs the 
/= operation. Read moreSource§impl<S> DivAssign for LinearAuto<S, Vector3<S>>
 
impl<S> DivAssign for LinearAuto<S, Vector3<S>>
Source§fn div_assign(&mut self, rhs: Self)
 
fn div_assign(&mut self, rhs: Self)
Performs the 
/= operation. Read moreSource§impl<S> DivAssign for LinearAuto<S, Vector4<S>>
 
impl<S> DivAssign for LinearAuto<S, Vector4<S>>
Source§fn div_assign(&mut self, rhs: Self)
 
fn div_assign(&mut self, rhs: Self)
Performs the 
/= operation. Read moreSource§impl<S, V> From<LinearIso<S, V, V, <V as Module<S>>::LinearEndo>> for LinearAuto<S, V>
 
impl<S, V> From<LinearIso<S, V, V, <V as Module<S>>::LinearEndo>> for LinearAuto<S, V>
Source§fn from(value: LinearIso<S, V, V, V::LinearEndo>) -> Self
 
fn from(value: LinearIso<S, V, V, V::LinearEndo>) -> Self
Converts to this type from the input type.
Source§impl<S> Inv for LinearAuto<S, Vector2<S>>
 
impl<S> Inv for LinearAuto<S, Vector2<S>>
Source§impl<S> Inv for LinearAuto<S, Vector3<S>>
 
impl<S> Inv for LinearAuto<S, Vector3<S>>
Source§impl<S> Inv for LinearAuto<S, Vector4<S>>
 
impl<S> Inv for LinearAuto<S, Vector4<S>>
Source§impl<S> Mul<LinearAuto<S, Vec2<S>>> for Vector2<S>where
    S: Ring + MaybeSerDes,
 
impl<S> Mul<LinearAuto<S, Vec2<S>>> for Vector2<S>where
    S: Ring + MaybeSerDes,
Source§impl<S> Mul<LinearAuto<S, Vec3<S>>> for Vector3<S>where
    S: Ring + MaybeSerDes,
 
impl<S> Mul<LinearAuto<S, Vec3<S>>> for Vector3<S>where
    S: Ring + MaybeSerDes,
Source§impl<S> Mul<LinearAuto<S, Vec4<S>>> for Vector4<S>where
    S: Ring + MaybeSerDes,
 
impl<S> Mul<LinearAuto<S, Vec4<S>>> for Vector4<S>where
    S: Ring + MaybeSerDes,
Source§impl<S, V> Mul<V> for LinearAuto<S, V>
 
impl<S, V> Mul<V> for LinearAuto<S, V>
Source§impl<S, V> Mul for LinearAuto<S, V>
 
impl<S, V> Mul for LinearAuto<S, V>
Source§impl<S, V> MulAssign for LinearAuto<S, V>
 
impl<S, V> MulAssign for LinearAuto<S, V>
Source§fn mul_assign(&mut self, rhs: Self)
 
fn mul_assign(&mut self, rhs: Self)
Performs the 
*= operation. Read moreSource§impl<S, V> One for LinearAuto<S, V>
 
impl<S, V> One for LinearAuto<S, V>
Source§impl<S, V> PartialEq for LinearAuto<S, V>
 
impl<S, V> PartialEq for LinearAuto<S, V>
impl<S, V> Copy for LinearAuto<S, V>
impl<S, V> StructuralPartialEq for LinearAuto<S, V>
Auto Trait Implementations§
impl<S, V> Freeze for LinearAuto<S, V>
impl<S, V> RefUnwindSafe for LinearAuto<S, V>
impl<S, V> Send for LinearAuto<S, V>
impl<S, V> Sync for LinearAuto<S, V>
impl<S, V> Unpin for LinearAuto<S, V>
impl<S, V> UnwindSafe for LinearAuto<S, V>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CheckedAs for T
 
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
    T: CheckedCast<Dst>,
 
fn checked_as<Dst>(self) -> Option<Dst>where
    T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
    Src: CheckedCast<Dst>,
 
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
    Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
 
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
    Dst: LosslessTryFrom<Src>,
 
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
    Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
 
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
    Dst: LossyFrom<Src>,
 
impl<Src, Dst> LossyInto<Dst> for Srcwhere
    Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
 
fn lossy_into(self) -> Dst
Performs the conversion.
Source§impl<T> MultiplicativeMonoid for T
 
impl<T> MultiplicativeMonoid for T
Source§impl<T> OverflowingAs for T
 
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
    T: OverflowingCast<Dst>,
 
fn overflowing_as<Dst>(self) -> (Dst, bool)where
    T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
    Src: OverflowingCast<Dst>,
 
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
    Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
 
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
 
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
    T: SaturatingCast<Dst>,
 
fn saturating_as<Dst>(self) -> Dstwhere
    T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
    Src: SaturatingCast<Dst>,
 
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
    Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
 
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
 
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
    T: UnwrappedCast<Dst>,
 
fn unwrapped_as<Dst>(self) -> Dstwhere
    T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
    Src: UnwrappedCast<Dst>,
 
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
    Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
 
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
 
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
    T: WrappingCast<Dst>,
 
fn wrapping_as<Dst>(self) -> Dstwhere
    T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
    Src: WrappingCast<Dst>,
 
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
    Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
 
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.