summaryrefslogtreecommitdiff
path: root/shared_cpp/mathlib.h
diff options
context:
space:
mode:
authormattkae <mattkae@protonmail.com>2022-02-06 17:17:55 -0500
committermattkae <mattkae@protonmail.com>2022-02-06 17:17:55 -0500
commit8dc353535fda6133ff120933072e725375c42afb (patch)
treefdb26c5ee183190147b2e8f2816054bf68db6d7d /shared_cpp/mathlib.h
parente965ed809e91079496f5b2d711ceb3e5e7b99f3d (diff)
Fixed the SAT collision code
Diffstat (limited to 'shared_cpp/mathlib.h')
-rw-r--r--shared_cpp/mathlib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/shared_cpp/mathlib.h b/shared_cpp/mathlib.h
index d8a15e7..9722f4f 100644
--- a/shared_cpp/mathlib.h
+++ b/shared_cpp/mathlib.h
@@ -22,6 +22,8 @@
#define DEG_TO_RAD(x) (x * (PI / 180.f))
#define RAD_TO_DEG(x) (x * (180.f / PI))
+struct Vector4;
+
// -- Random
inline float randomFloatBetween(float min, float max) {
@@ -44,6 +46,7 @@ struct Vector2 {
Vector2 operator-(Vector2 other);
Vector2 operator*(float s);
Vector2 operator/(float s);
+ void operator=(const Vector4& other);
float dot(Vector2 other);
float length();
Vector2 normalize();