CGVIS Utils
Loading...
Searching...
No Matches
Mat3.h File Reference

3×3 matrix template for rotations, scaling, and basic linear algebra. More...

#include <ostream>
#include <string>
#include <array>
#include <sstream>
#include <cmath>
#include "Vec3.h"
Include dependency graph for Mat3.h:

Go to the source code of this file.

Classes

class  Mat3t< T >

Typedefs

typedef Mat3t< float > Mat3
 Single-precision 3×3 matrix.

Detailed Description

3×3 matrix template for rotations, scaling, and basic linear algebra.

Provides a compact column-major 3×3 matrix type, Mat3t<T>, with scalar arithmetic, matrix–matrix and matrix–vector multiplication, constructors for axis-aligned scaling and axis rotations (X/Y/Z), as well as transpose, determinant, and inverse helpers.

Note
Layout: elements are stored in a flat std::array<T,9> named e in column-major order (OpenGL-style). Operators and factory methods assume this layout.

Typedef Documentation

◆ Mat3

typedef Mat3t<float> Mat3

Single-precision 3×3 matrix.