diff options
| author | Ray <[email protected]> | 2023-05-02 20:51:54 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2023-05-02 20:51:54 +0200 |
| commit | a48bb6e1ed7b33190e486ba65b7875f0dff73701 (patch) | |
| tree | 299753ac022385fea1820df9b8ff89114091f16a /src/raymath.h | |
| parent | fc56940055cbb7b6e5f4f79d84b3d8c5707d31ec (diff) | |
| download | raylib-a48bb6e1ed7b33190e486ba65b7875f0dff73701.tar.gz raylib-a48bb6e1ed7b33190e486ba65b7875f0dff73701.zip | |
ADDED: Comment to clarify raymath semantics
Diffstat (limited to 'src/raymath.h')
| -rw-r--r-- | src/raymath.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/raymath.h b/src/raymath.h index fa72400d..fbb97048 100644 --- a/src/raymath.h +++ b/src/raymath.h @@ -8,6 +8,7 @@ * It is like transposed versions of the matrices are used for all the maths * It benefits some functions making them cache-friendly and also avoids matrix * transpositions sometimes required by OpenGL +* Example: In memory order, row0 is [m0 m4 m8 m12] but in semantic math row0 is [m0 m1 m2 m3] * - Functions are always self-contained, no function use another raymath function inside, * required code is directly re-implemented inside * - Functions input parameters are always received by value (2 unavoidable exceptions) |
