diff options
Diffstat (limited to 'shared_cpp/mathlib.h')
-rw-r--r-- | shared_cpp/mathlib.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/shared_cpp/mathlib.h b/shared_cpp/mathlib.h index fd21ae2..d8a15e7 100644 --- a/shared_cpp/mathlib.h +++ b/shared_cpp/mathlib.h @@ -96,6 +96,8 @@ struct Vector4 { Vector4(float inX, float inY, float inZ, float inW); Vector4 fromColor(float r, float g, float b, float a); Vector4 toNormalizedColor(); + Vector4(Vector2& v); + Vector4(Vector3& v); float length(); Vector4 normalize(); @@ -106,6 +108,8 @@ struct Vector4 { Vector4 negate(); Vector4 cross(const Vector4& other); + void operator=(const Vector2& v2); + void operator=(const Vector3& v2); Vector4 operator+(const Vector4& v2); Vector4 operator-(const Vector4& v2); Vector4 operator-(); |