diff options
Diffstat (limited to 'src/vector.h')
-rw-r--r-- | src/vector.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vector.h b/src/vector.h index 10fe4da..a94aea0 100644 --- a/src/vector.h +++ b/src/vector.h | |||
@@ -112,6 +112,11 @@ public: | |||
112 | return vec2(x() * other.x(), y() * other.y()); | 112 | return vec2(x() * other.x(), y() * other.y()); |
113 | } | 113 | } |
114 | 114 | ||
115 | constexpr bool operator==(const vec2& other) const | ||
116 | { | ||
117 | return (x() == other.x()) && (y() == other.y()); | ||
118 | } | ||
119 | |||
115 | }; | 120 | }; |
116 | 121 | ||
117 | using vec2s = vec2<size_t>; | 122 | using vec2s = vec2<size_t>; |