JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Mat4 Class Reference

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 More...
 

Detailed Description

4x4 matrix

Identical to boost::qvm::mat<float, 4, 4>, but stores the elements column-major in memory

Definition at line 15 of file Mat4.hpp.

Member Data Documentation

◆ data

float data[16] = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 }

column-major

Definition at line 24 of file Mat4.hpp.


The documentation for this class was generated from the following file: