From e7b4a4fad2761e1126e67f6b572f3cd6283358d3 Mon Sep 17 00:00:00 2001 From: Garux Date: Mon, 27 Nov 2017 14:05:09 +0300 Subject: [PATCH] add class Matrix4 commentary --- libs/math/matrix.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libs/math/matrix.h b/libs/math/matrix.h index 66fad560..ee577ff6 100644 --- a/libs/math/matrix.h +++ b/libs/math/matrix.h @@ -28,6 +28,13 @@ #include "math/vector.h" /// \brief A 4x4 matrix stored in single-precision floating-point. +/// column-major matrix! +/// translation lives in [12], [13], [14] (.t()) +/// [0] [4] [8] [12] +/// [1] [5] [9] [13] +/// [2] [6] [10] [14] +/// [3] [7] [11] [15] + class Matrix4 { float m_elements[16];