From: Ricardo Cruz Date: Wed, 6 Oct 2004 21:36:51 +0000 (+0000) Subject: Added a != operator. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=cfa23c90af0884533783a12ec8f59d5fbd61f2f6;p=supertux.git Added a != operator. SVN-Revision: 1983 --- 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;