Raven Engine v0.1
Loading...
Searching...
No Matches
Matrix.h File Reference

Templated fixed-size matrix types for Crux. More...

#include <array>

Classes

struct  Crux::Matrix< T, Rows, Cols >
 Generic fixed-size matrix container. More...

Namespaces

namespace  Crux

Typedefs

using Crux::mat2 = Matrix<float, 2, 2>
 2x2 single-precision floating-point matrix.
using Crux::mat3 = Matrix<float, 3, 3>
 3x3 single-precision floating-point matrix.
using Crux::mat4 = Matrix<float, 4, 4>
 4x4 single-precision floating-point matrix.
using Crux::dmat2 = Matrix<double, 2, 2>
 2x2 double-precision floating-point matrix.
using Crux::dmat3 = Matrix<double, 3, 3>
 3x3 double-precision floating-point matrix.
using Crux::dmat4 = Matrix<double, 4, 4>
 4x4 double-precision floating-point matrix.
using Crux::imat2 = Matrix<int, 2, 2>
 2x2 integer matrix.
using Crux::imat3 = Matrix<int, 3, 3>
 3x3 integer matrix.
using Crux::imat4 = Matrix<int, 4, 4>
 4x4 integer matrix.

Detailed Description

Templated fixed-size matrix types for Crux.

Defines a generic Matrix<T, Rows, Cols> template supporting construction, indexing, and initialization both to scalar values and via initializer lists. Provides common type aliases for 2x2, 3x3, and 4x4 matrices of float, double, and int.

All operations are constexpr-friendly to allow compile-time evaluation where possible.

Author
Philip