The Table Engine
|
A structure to represent 2D vectors. More...
#include <vec2.h>
Public Member Functions | |
Vec2 () | |
Default constructor initializing vector to (0, 0). More... | |
Vec2 (float x, float y) | |
Constructor that initializes vector with specified x and y values. More... | |
bool | operator== (const Vec2 &other) const |
Checks equality of this vector with another vector. More... | |
Public Attributes | |
float | x |
X coordinate of the vector. More... | |
float | y |
Y coordinate of the vector. More... | |
A structure to represent 2D vectors.
This structure is used throughout the Game Engine to handle 2-dimensional vector operations.
Vec2::Vec2 | ( | ) |
Vec2::Vec2 | ( | float | x, |
float | y | ||
) |
bool Vec2::operator== | ( | const Vec2 & | other | ) | const |