diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-20 13:10:00 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:56 +0200 |
commit | b6061eff99907495de282f611e8389e6468a1fb0 (patch) | |
tree | d3bad9c913fa82095967c852621375aff2d72fb9 /src/engine/data/vector2.hpp | |
parent | cef38fcb5cf2e1b091ebb40397f376f05d211d1e (diff) |
refactor: rename vector2 operator overload args to rhs
Diffstat (limited to 'src/engine/data/vector2.hpp')
-rw-r--r-- | src/engine/data/vector2.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/engine/data/vector2.hpp b/src/engine/data/vector2.hpp index 60cecf3..78eba11 100644 --- a/src/engine/data/vector2.hpp +++ b/src/engine/data/vector2.hpp @@ -33,14 +33,14 @@ public: [[nodiscard]] Vector2 to_direction(const Vector2 &direction, Vector2::Value amount) const noexcept; - const Vector2 &operator+=(const Vector2 &vector2) noexcept; - const Vector2 &operator-=(const Vector2 &vector2) noexcept; + const Vector2 &operator+=(const Vector2 &rhs) noexcept; + const Vector2 &operator-=(const Vector2 &rhs) noexcept; - Vector2 operator+(const Vector2 &vector2) const noexcept; - Vector2 operator-(const Vector2 &vector2) const noexcept; - Vector2 operator*(const Vector2 &vector2) const noexcept; + Vector2 operator+(const Vector2 &rhs) const noexcept; + Vector2 operator-(const Vector2 &rhs) const noexcept; + Vector2 operator*(const Vector2 &rhs) const noexcept; - bool operator==(const Vector2 &vector2) const noexcept; + bool operator==(const Vector2 &rhs) const noexcept; /** * Returns Vector2({.x = 0, .y = -1}) |