summaryrefslogtreecommitdiffstats
path: root/include/core/Vector3.hpp
diff options
context:
space:
mode:
authorMarc <marc.gilleron@gmail.com>2021-01-31 20:06:56 +0000
committerGitHub <noreply@github.com>2021-01-31 20:06:56 +0000
commitb400dba87534640eeddbcdb6b319335a6a7639d8 (patch)
tree286a8e2e25c18fe11f346835b3021afae2e9b77f /include/core/Vector3.hpp
parentfb71edd45b2473bf0ac502c777a1850fb564087e (diff)
parent05ba977cc60653952b73dc03498ebc7a93cef120 (diff)
downloadredot-cpp-b400dba87534640eeddbcdb6b319335a6a7639d8.tar.gz
Merge branch 'master' into container_leaks
Diffstat (limited to 'include/core/Vector3.hpp')
-rw-r--r--include/core/Vector3.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/core/Vector3.hpp b/include/core/Vector3.hpp
index 5971787..cbd4f75 100644
--- a/include/core/Vector3.hpp
+++ b/include/core/Vector3.hpp
@@ -19,8 +19,21 @@ struct Vector3 {
AXIS_X,
AXIS_Y,
AXIS_Z,
+ AXIS_COUNT
};
+ static const Vector3 ZERO;
+ static const Vector3 ONE;
+ static const Vector3 INF;
+
+ // Coordinate system of the 3D engine
+ static const Vector3 LEFT;
+ static const Vector3 RIGHT;
+ static const Vector3 UP;
+ static const Vector3 DOWN;
+ static const Vector3 FORWARD;
+ static const Vector3 BACK;
+
union {
struct {
real_t x;