From cfa23c90af0884533783a12ec8f59d5fbd61f2f6 Mon Sep 17 00:00:00 2001 From: Ricardo Cruz Date: Wed, 6 Oct 2004 21:36:51 +0000 Subject: [PATCH] Added a != operator. SVN-Revision: 1983 --- lib/math/vector.h | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.11.0