int y
The y coordinate of the vector.
Definition: Vector2.hpp:32
Vector2()
Constructs a default Vector2.
Definition: Vector2.cpp:3
Basic class representation of a vector 2 with an x and y coordinate.
Definition: Vector2.hpp:8
Vector2 operator*(const int other)
Multiplies two vectors together.
Definition: Vector2.cpp:12
int x
The x coordinate of the vector.
Definition: Vector2.hpp:30
void operator+=(const Vector2 &other)
Adds two vectors together.
Definition: Vector2.cpp:7