|
ObjectivelyGPU
Object oriented graphics framework for SDL3 and C
|
Column-major 4×4 single-precision matrix. Layout matches GLSL mat4.
More...
#include <Mathlib.h>
Data Fields | |
| float | f [16] |
| Flat array accessor. | |
| float | m [4][4] |
Column-major 2D array accessor. m[col][row]. | |
| vec4 | cols [4] |
| Column vectors. | |
Column-major 4×4 single-precision matrix. Layout matches GLSL mat4.
m[col][row] — the first index is the column, the second is the row. cols[i] is the i-th column as a vec4. f[col * 4 + row] is the flat accessor.
| vec4 mat4::cols[4] |
Column vectors.
| float mat4::f[16] |
Flat array accessor.
| float mat4::m[4][4] |
Column-major 2D array accessor. m[col][row].