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 5f9abff..0a39195 100644 --- a/shared_cpp/mathlib.h +++ b/shared_cpp/mathlib.h @@ -36,6 +36,8 @@ struct Vector2 { float x = 0; float y = 0; + Vector2(); + Vector2(float inX, float inY); Vector2 operator+(Vector2 other); Vector2& operator+=(Vector2 other); Vector2 operator-(Vector2 other); @@ -113,6 +115,8 @@ struct Vector4 { void printDebug(const char* name); }; +Vector4 lerp(Vector4 start, Vector4 end, float t); + struct Mat4x4 { float m[16] = { 1, 0, 0, 0, |