input basics
This commit is contained in:
parent
52090853da
commit
cf51ab71a2
17 changed files with 459 additions and 19 deletions
|
|
@ -26,4 +26,15 @@ class Vector2D {
|
|||
Vector2D operator/(float a) {
|
||||
return Vector2D(this->x / a, this->y / a);
|
||||
}
|
||||
|
||||
bool operator==(Vector2D& a) {
|
||||
return a.x == x && a.y == y;
|
||||
}
|
||||
|
||||
bool operator!=(Vector2D& a) {
|
||||
return a.x != x || a.y != y;
|
||||
}
|
||||
|
||||
|
||||
Vector2D floor();
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue