X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=lib%2Fmath%2Fvector.h;h=dac4c95cde88f366fb01576ecc56bfdbcaa2ef5e;hb=cfa23c90af0884533783a12ec8f59d5fbd61f2f6;hp=faedaff9e6dcfde3d4c0415f66406655f2fd424d;hpb=225fab365687c62ccd4196ad6e2be94bf74adc13;p=supertux.git diff --git a/lib/math/vector.h b/lib/math/vector.h index faedaff9e..dac4c95cd 100644 --- a/lib/math/vector.h +++ b/lib/math/vector.h @@ -48,6 +48,11 @@ namespace SuperTux return x == other.x && y == other.y; } + bool operator !=(const Vector& other) const + { + return !(x == other.x && y == other.y); + } + const Vector& operator=(const Vector& other) { x = other.x;