projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
225fab3
)
Added a != operator.
author
Ricardo Cruz
<rick2@aeiou.pt>
Wed, 6 Oct 2004 21:36:51 +0000
(21:36 +0000)
committer
Ricardo Cruz
<rick2@aeiou.pt>
Wed, 6 Oct 2004 21:36:51 +0000
(21:36 +0000)
SVN-Revision: 1983
lib/math/vector.h
patch
|
blob
|
history
diff --git
a/lib/math/vector.h
b/lib/math/vector.h
index
faedaff
..
dac4c95
100644
(file)
--- 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;