Added Godot's math functions

This commit is contained in:
Marc Gilleron
2020-08-30 23:15:07 +01:00
parent d53b294f5b
commit 0d1511695d
5 changed files with 275 additions and 13 deletions

View File

@@ -73,6 +73,7 @@ typedef float real_t;
#define CMP_EPSILON 0.00001
#define CMP_EPSILON2 (CMP_EPSILON * CMP_EPSILON)
#define Math_PI 3.14159265358979323846
#define Math_TAU 6.2831853071795864769252867666
#define _PLANE_EQ_DOT_EPSILON 0.999
#define _PLANE_EQ_D_EPSILON 0.0001