#[non_exhaustive]pub enum LinearTransformClassification {
UnitOrthonormal,
UniformScaled,
NonUniform,
Sheared,
Reflected,
Singular,
NonFinite,
}Expand description
Stable classification of the linear 3x3 part of an affine transform.
Reflection is classified before shear or scale shape; the axis lengths and orientation retain the remaining facts for reflected transforms.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnitOrthonormal
Orthogonal unit-length axes with positive orientation.
UniformScaled
Orthogonal equal-length axes with a non-unit factor.
NonUniform
Orthogonal axes with unequal lengths.
Sheared
At least two axes are not orthogonal.
Reflected
The determinant is negative; axis and uniform-factor facts remain available to describe the reflected transform further.
Singular
The linear transform is singular or near-singular relative to its axis lengths.
NonFinite
At least one matrix component, derived axis length, or determinant is non-finite.
Trait Implementations§
Source§impl Clone for LinearTransformClassification
impl Clone for LinearTransformClassification
Source§fn clone(&self) -> LinearTransformClassification
fn clone(&self) -> LinearTransformClassification
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LinearTransformClassification
Source§impl<'de> Deserialize<'de> for LinearTransformClassification
impl<'de> Deserialize<'de> for LinearTransformClassification
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LinearTransformClassification
impl StructuralPartialEq for LinearTransformClassification
Auto Trait Implementations§
impl Freeze for LinearTransformClassification
impl RefUnwindSafe for LinearTransformClassification
impl Send for LinearTransformClassification
impl Sync for LinearTransformClassification
impl Unpin for LinearTransformClassification
impl UnsafeUnpin for LinearTransformClassification
impl UnwindSafe for LinearTransformClassification
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