summaryrefslogtreecommitdiffstats
path: root/include/core/Vector2.hpp
diff options
context:
space:
mode:
authorMarc <marc.gilleron@gmail.com>2021-01-31 20:02:06 +0000
committerGitHub <noreply@github.com>2021-01-31 20:02:06 +0000
commite76efdd3ab18092f65a2bea8ca92e604420fce2f (patch)
treef8e4f63e1f5e99552534e4a604ce9146b7593bf6 /include/core/Vector2.hpp
parent18e1b262ff503543912a9fb39a2502e5bb9a865d (diff)
parent8e1cc29c66cc4dd28721a0367ef2f55464e9f026 (diff)
downloadredot-cpp-e76efdd3ab18092f65a2bea8ca92e604420fce2f.tar.gz
Merge pull request #481 from Zylann/vec_constants
Added missing constants to Vector2, Vector3, Basis and Quat
Diffstat (limited to 'include/core/Vector2.hpp')
-rw-r--r--include/core/Vector2.hpp15
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;