I fucking hate collisions

This commit is contained in:
Kayne Ruse
2014-12-27 20:27:24 +11:00
parent 8bf45bc8e4
commit 7c51f820d5
4 changed files with 27 additions and 10 deletions
+4
View File
@@ -92,6 +92,10 @@ public:
return ret;
}
//unary operators
Vector2 operator-() { return {-x, -y}; }
//comparison operators
bool operator==(Vector2 v) { return (x == v.x && y == v.y); }
bool operator!=(Vector2 v) { return (x != v.x || y != v.y); }