diff options
Diffstat (limited to 'Runtime/Math/Vector3.h')
-rw-r--r-- | Runtime/Math/Vector3.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Runtime/Math/Vector3.h b/Runtime/Math/Vector3.h index c0a35f3..e81e880 100644 --- a/Runtime/Math/Vector3.h +++ b/Runtime/Math/Vector3.h @@ -7,7 +7,12 @@ namespace Internal struct Vector3 { float x, y, z; - + Vector3(float x = 0, float y = 0, float z = 0) + { + this->x = x; + this->y = y; + this->z = z; + } inline void Set(float x, float y, float z) { this->x = x; @@ -15,6 +20,10 @@ namespace Internal this->z = z; } + + static Vector3 zero; + static Vector3 one; + }; |