JNGL
Easy to use cross-platform 2D game library
|
4x4 matrix More...
#include <jngl/Mat4.hpp>
Public Member Functions | |
Mat4 ()=default | |
creates identity matrix | |
Mat4 (std::initializer_list< float >) | |
construct matrix from row-major array with 16 elements | |
Public Attributes | |
float | data [16] = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 } |
column-major | |
4x4 matrix
Identical to boost::qvm::mat<float, 4, 4>
, but stores the elements column-major in memory
float data[16] = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 } |