Update of /cvsroot/super-tux/supertux/lib/math
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19284/lib/math
Modified Files:
vector.h
Log Message:
Added a != operator.
Index: vector.h
===================================================================
RCS file: /cvsroot/super-tux/supertux/lib/math/vector.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- vector.h 5 Aug 2004 20:11:30 -0000 1.5
+++ vector.h 6 Oct 2004 21:36:51 -0000 1.6
@@ -48,6 +48,11 @@
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;
|