mat4

A matrix with 4x4 floating-point number components. These can be accessed with [0/1/2/3][0/1/2/3].

mat4 example = mat4(1.0, 0.0, 0.0, 0.0,
                    0.0, 1.0, 0.0, 0.0,
                    0.0, 0.0, 1.0, 0.0,
                    0.0, 0.0, 0.0, 1.0);

float firstValue = example[0][0];
float lastValue  = example[3][3];

Read more:

See Also


Other Languages