diff options
| author | raysan5 <raysan5@gmail.com> | 2014-09-16 22:51:31 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2014-09-16 22:51:31 +0200 |
| commit | fc6081fe70ab7c3b037c0ab9f38478904d3cdde2 (patch) | |
| tree | 6635fd800fa673ef3fb568c6f47ebc76a2b8ad6e /src/raymath.h | |
| parent | 01651af08a494b1ac08c897695891ad7cf44ad47 (diff) | |
| download | raylib-fc6081fe70ab7c3b037c0ab9f38478904d3cdde2.tar.gz raylib-fc6081fe70ab7c3b037c0ab9f38478904d3cdde2.zip | |
raylib 1.2
This is a huge update. Check CHANGELOG for details
Diffstat (limited to 'src/raymath.h')
| -rw-r--r-- | src/raymath.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/raymath.h b/src/raymath.h index 5dcfe061..c396a347 100644 --- a/src/raymath.h +++ b/src/raymath.h @@ -1,4 +1,4 @@ -/********************************************************************************************* +/********************************************************************************************** * * raymath * @@ -39,8 +39,8 @@ #define PI 3.14159265358979323846 #endif -#define DEG2RAD (PI / 180.0) -#define RAD2DEG (180.0 / PI) +#define DEG2RAD (PI / 180.0f) +#define RAD2DEG (180.0f / PI) //---------------------------------------------------------------------------------- // Types and Structures Definition @@ -101,9 +101,9 @@ float *GetMatrixVector(Matrix mat); // Returns an OpenGL-rea float MatrixDeterminant(Matrix mat); // Compute matrix determinant float MatrixTrace(Matrix mat); // Returns the trace of the matrix (sum of the values along the diagonal) void MatrixTranspose(Matrix *mat); // Transposes provided matrix -void MatrixInvert(Matrix *mat); // Invert provided matrix +void MatrixInvert(Matrix *mat); // Invert provided matrix void MatrixNormalize(Matrix *mat); // Normalize provided matrix -Matrix MatrixIdentity(); // Returns identity matrix +Matrix MatrixIdentity(void); // Returns identity matrix 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 |
