From a475b843e7d37f128ce30140d193f0312aa70c9c Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 2 Feb 2021 15:36:09 -0500 Subject: Using tmxlite instead of Tileson --- src/vector.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/vector.h') diff --git a/src/vector.h b/src/vector.h index bf38bb2..d54fdbb 100644 --- a/src/vector.h +++ b/src/vector.h @@ -91,6 +91,10 @@ public: return *this; } + vec2 operator*(const vec2& other) const { + return vec2(x() * other.x(), y() * other.y()); + } + bool operator==(const vec2& other) const { return std::tie(x(), other.x()) == std::tie(y(), other.y()); } -- cgit 1.4.1