TCategory in nalgebra::geometry - Rust
Description: Trait implemented by phantom types identifying the projective transformation type.
Keywords: rust, rustlang, rust-lang, TCategory

# Trait nalgebra::geometry::TCategory

source ·

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

        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 where
T::Epsilon: Clone,
DefaultAllocator: Allocator<T, D, D>,

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`.

## Implementors§

source§

### impl TCategory for TAffine

source§

### impl TCategory for TGeneral

source§

### impl TCategory for TProjective