diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-02 15:36:09 -0500 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-02 15:36:09 -0500 |
| commit | a475b843e7d37f128ce30140d193f0312aa70c9c (patch) | |
| tree | 99432d35d61aa14c1ac17311694a8ae62675d3a6 /src/vector.h | |
| parent | 7166c9b831f9c6a50ba42272682b776d01e5703e (diff) | |
| download | tanetane-a475b843e7d37f128ce30140d193f0312aa70c9c.tar.gz tanetane-a475b843e7d37f128ce30140d193f0312aa70c9c.tar.bz2 tanetane-a475b843e7d37f128ce30140d193f0312aa70c9c.zip | |
Using tmxlite instead of Tileson
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 | } |
