template<UnsignedInt dimensions, class T>
Magnum::DimensionTraits struct

Matrix and vector specializations for given dimension count.

Public types

using VectorType = U
Vector type.
using RangeType = U
Range type.
using MatrixType = U
Matrix type.

Typedef documentation

template<UnsignedInt dimensions, class T>
typedef U Magnum::DimensionTraits<dimensions, T>::VectorType

Vector type.

Math::Vector, Math::Vector2 or Math::Vector3 based on dimension count.

template<UnsignedInt dimensions, class T>
typedef U Magnum::DimensionTraits<dimensions, T>::RangeType

Range type.

Math::Range1D, Math::Range2D or Math::Range3D based on dimension count.

template<UnsignedInt dimensions, class T>
typedef U Magnum::DimensionTraits<dimensions, T>::MatrixType

Matrix type.

Floating-point Math::Matrix3 or Math::Matrix4 for 2D or 3D. No matrix type defined for one dimension and integral types.