diff options
| author | raysan5 <raysan5@gmail.com> | 2014-12-31 18:03:32 +0100 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2014-12-31 18:03:32 +0100 |
| commit | 905b6ec53df01a4f660c12c08c32e2cc301f7ad6 (patch) | |
| tree | 8b5c43267c6056e45be8807e0867b8fd50777a2d /src/raymath.h | |
| parent | 08a4ee34ebe97e679a27f43b9f25525982029d17 (diff) | |
| download | raylib-905b6ec53df01a4f660c12c08c32e2cc301f7ad6.tar.gz raylib-905b6ec53df01a4f660c12c08c32e2cc301f7ad6.zip | |
Added full support for HTML5 (emscripten)
Corrected some bugs on the way...
Automatically convert textures to POT on RPI and WEB
Diffstat (limited to 'src/raymath.h')
| -rw-r--r-- | src/raymath.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/raymath.h b/src/raymath.h index 334df4f3..c8c1a26c 100644 --- a/src/raymath.h +++ b/src/raymath.h @@ -55,7 +55,7 @@ } Vector3; #endif -// Matrix type (OpenGL style 4x4 - right handed) +// Matrix type (OpenGL style 4x4 - right handed, column major) typedef struct Matrix { float m0, m4, m8, m12; float m1, m5, m9, m13; @@ -107,7 +107,7 @@ Matrix MatrixIdentity(void); // Returns identity matr Matrix MatrixAdd(Matrix left, Matrix right); // Add two matrices Matrix MatrixSubstract(Matrix left, Matrix right); // Substract two matrices (left - right) Matrix MatrixTranslate(float x, float y, float z); // Returns translation matrix -Matrix MatrixRotate(float angleX, float angleY, float angleZ); // Returns rotation matrix +Matrix MatrixRotate(float axisX, float axisY, float axisZ); // Returns rotation matrix Matrix MatrixFromAxisAngle(Vector3 axis, float angle); // Returns rotation matrix for an angle around an specified axis Matrix MatrixFromAxisAngle2(Vector3 axis, float angle); // Returns rotation matrix for an angle around an specified axis (test another implemntation) Matrix MatrixFromQuaternion(Quaternion q); // Returns rotation matrix for a given quaternion |
