projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
- Yet another try in the endless quest for perfect collision detection.
[supertux.git]
/
src
/
math
/
vector.hpp
diff --git
a/src/math/vector.hpp
b/src/math/vector.hpp
index
38c1204
..
6882cf1
100644
(file)
--- a/
src/math/vector.hpp
+++ b/
src/math/vector.hpp
@@
-82,6
+82,13
@@
public:
return *this;
}
+ const Vector& operator -=(const Vector& other)
+ {
+ x -= other.x;
+ y -= other.y;
+ return *this;
+ }
+
const Vector& operator *=(float val)
{
x *= val;