39 return x == other.
x &&
y == other.
y;
A structure to represent 2D vectors.
float y
Y coordinate of the vector.
Vec2(float x, float y)
Constructor that initializes vector with specified x and y values.
Vec2()
Default constructor initializing vector to (0, 0).
float x
X coordinate of the vector.
bool operator==(const Vec2 &other) const
Checks equality of this vector with another vector.