diff options
author | Marc <marc.gilleron@gmail.com> | 2021-01-31 20:06:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-31 20:06:56 +0000 |
commit | b400dba87534640eeddbcdb6b319335a6a7639d8 (patch) | |
tree | 286a8e2e25c18fe11f346835b3021afae2e9b77f /include/core/Vector2.hpp | |
parent | fb71edd45b2473bf0ac502c777a1850fb564087e (diff) | |
parent | 05ba977cc60653952b73dc03498ebc7a93cef120 (diff) | |
download | redot-cpp-b400dba87534640eeddbcdb6b319335a6a7639d8.tar.gz |
Merge branch 'master' into container_leaks
Diffstat (limited to 'include/core/Vector2.hpp')
-rw-r--r-- | include/core/Vector2.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/core/Vector2.hpp b/include/core/Vector2.hpp index 031d47f..3c2a403 100644 --- a/include/core/Vector2.hpp +++ b/include/core/Vector2.hpp @@ -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; |