Преглед на файлове

ADDED: Comment about Matrix conventions

pull/3043/head
Ray преди 2 години
родител
ревизия
3a21301724
променени са 1 файла, в които са добавени 5 реда и са изтрити 0 реда
  1. +5
    -0
      src/raymath.h

+ 5
- 0
src/raymath.h Целия файл

@ -3,6 +3,11 @@
* raymath v1.5 - Math functions to work with Vector2, Vector3, Matrix and Quaternions * raymath v1.5 - Math functions to work with Vector2, Vector3, Matrix and Quaternions
* *
* CONVENTIONS: * CONVENTIONS:
* - Matrix structure is defined as row-major (memory layout) but parameters naming AND all
* math operations performed by the library consider the structure as it was column-major
* 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
* - Functions are always self-contained, no function use another raymath function inside, * - Functions are always self-contained, no function use another raymath function inside,
* required code is directly re-implemented inside * required code is directly re-implemented inside
* - Functions input parameters are always received by value (2 unavoidable exceptions) * - Functions input parameters are always received by value (2 unavoidable exceptions)

Зареждане…
Отказ
Запис