nalgebra::geometry

Trait TCategory

Source
pub trait TCategory:
    Any
    + Debug
    + Copy
    + PartialEq
    + Send {
    // Required method
    fn check_homogeneous_invariants<T: RealField, D: DimName>(
        mat: &OMatrix<T, D, D>,
    ) -> bool
       where T::Epsilon: Clone,
             DefaultAllocator: Allocator<D, D>;

    // Provided method
    fn has_normalizer() -> bool { ... }
}
Expand description

Trait implemented by phantom types identifying the projective transformation type.

NOTE: this trait is not intended to be implemented outside of the nalgebra crate.

Required Methods§

Source

fn check_homogeneous_invariants<T: RealField, D: DimName>( mat: &OMatrix<T, D, D>, ) -> bool

Checks that the given matrix is a valid homogeneous representation of an element of the category Self.

Provided Methods§

Source

fn has_normalizer() -> bool

Indicates whether a Transform with the category Self has a bottom-row different from 0 0 .. 1.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§