Added missing constants to Vector2, Vector3, Basis and Quat

This commit is contained in:
Marc Gilleron
2020-12-08 23:00:34 +00:00
parent 43828ebb39
commit 8e1cc29c66
12 changed files with 80 additions and 0 deletions

View File

@@ -12,6 +12,21 @@ namespace godot {
class String;
struct Vector2 {
enum Axis {
AXIS_X = 0,
AXIS_Y,
AXIS_COUNT
};
static const Vector2 ZERO;
static const Vector2 ONE;
static const Vector2 INF;
// Coordinate system of the 2D engine
static const Vector2 LEFT;
static const Vector2 RIGHT;
static const Vector2 UP;
static const Vector2 DOWN;
union {
real_t x;