added some matrix/math funcs

This commit is contained in:
h4570
2020-12-12 14:07:23 +01:00
parent edf5bd1e55
commit ac36012545
4 changed files with 207 additions and 11 deletions
+2
View File
@@ -28,6 +28,8 @@ public:
const static float PI = 3.1415926535897932384626433832795F;
const static float HALF_PI = 1.5707963267948966192313216916398F;
static float cos(float x);
static float asin(float x);
static float mod(float x, float y);
static inline float sin(float x) { return cos(x - HALF_PI); };
static float sqrt(float x);
static float invSqrt(float x);