SaturnRingLibrary 0.9.1
SGL wrapper
 
Loading...
Searching...
No Matches

◆ Identity()

static consteval Matrix33 SRL::Math::Types::Matrix33::Identity ( )
inlinestaticconsteval

Create an identity matrix.

Creates a 3x3 identity matrix, which represents a null transformation (no rotation, no scale). This is the multiplicative identity for matrices.

The identity matrix is: | 1 0 0 | | 0 1 0 | | 0 0 1 |

Properties of the identity matrix:

  • M * I = I * M = M for any matrix M
  • Represents no transformation
  • Has a determinant of 1
Returns
The 3x3 identity matrix.
Vector3D v(1, 2, 3);
Vector3D result = identity * v; // Same as v
static consteval Matrix33 Identity()
Create an identity matrix.
Definition mat33.hpp:719
constexpr Matrix33()
Default constructor initializing to a zero matrix.
Definition mat33.hpp:76
A high-performance three-dimensional vector implementation optimized for Saturn hardware.
Definition vector3d.hpp:51