diff options
author | mattkae <mattkae@protonmail.com> | 2022-01-22 13:57:55 -0500 |
---|---|---|
committer | mattkae <mattkae@protonmail.com> | 2022-01-22 13:57:55 -0500 |
commit | 3f3d1ed1cba61015aa47a6ad9812ae0d30316cc5 (patch) | |
tree | ba6f5d8aa5114de81f331828ef877a6f4ddebfda /shared_cpp/mathlib.h | |
parent | 19defa9be56588803bbae0f38e2f271a91b9d690 (diff) |
(mkosarek) Added dots to the spring bodied rectangle
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-(); |