Matrix2 in nalgebra::base - Rust
Description: A stack-allocated, column-major, 2x2 square matrix.
Keywords: rust, rustlang, rust-lang, Matrix2

# Type Definition nalgebra::base::Matrix2

source ·

    pub type Matrix2<T> = Matrix<T, U2, U2, ArrayStorage<T, 2, 2>>;

Expand description

A stack-allocated, column-major, 2x2 square matrix.

Because this is an alias, not all its methods are listed here. See the `Matrix` type too.

## Trait Implementations§

source§

### impl<T: RealField> From<Rotation<T, 2>> for Matrix2<T>

source§

#### fn from(q: Rotation2<T>) -> Self

Converts to this type from the input type.
source§

### impl<T: SimdRealField> From<Unit<Complex<T>>> for Matrix2<T>where
T::Element: SimdRealField,

source§

#### fn from(q: UnitComplex<T>) -> Self

Converts to this type from the input type.