diff options
Diffstat (limited to 'src/vector.h')
-rw-r--r-- | src/vector.h | 4 |
1 files changed, 4 insertions, 0 deletions
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: | |||
91 | return *this; | 91 | return *this; |
92 | } | 92 | } |
93 | 93 | ||
94 | vec2 operator*(const vec2& other) const { | ||
95 | return vec2(x() * other.x(), y() * other.y()); | ||
96 | } | ||
97 | |||
94 | bool operator==(const vec2& other) const { | 98 | bool operator==(const vec2& other) const { |
95 | return std::tie(x(), other.x()) == std::tie(y(), other.y()); | 99 | return std::tie(x(), other.x()) == std::tie(y(), other.y()); |
96 | } | 100 | } |