Fix 2 typos.

This commit is contained in:
Relintai 2022-02-04 11:52:40 +01:00
parent 397459ce7b
commit bfa4a96c2a

View File

@ -207,10 +207,10 @@ Vector2 Vector2::operator-() const {
} }
bool Vector2::operator==(const Vector2 &b) const { bool Vector2::operator==(const Vector2 &b) const {
return x == b.x && y == y; return x == b.x && y == b.y;
} }
bool Vector2::operator!=(const Vector2 &b) const { bool Vector2::operator!=(const Vector2 &b) const {
return x != b.x || y == b.y; return x != b.x || y != b.y;
} }
const float &Vector2::operator[](int axis) const { const float &Vector2::operator[](int axis) const {