This structure describes a two-dimensional vector.
Property | Type | Description |
---|---|---|
x | float | x component of the vector |
y | float | y component of the vector |
Vec2 | Constructor | Vec2(const float x) |
Vec2 | Constructor | Vec2(const float x, const float y) |
Length | Method | returns the length of the vector |
Normalize | Method | returns the normalized vector |