Creates an Vec2 structure with functions Creates an Vec2 structure with overloaded operators to create a new variable type for use as a 2D vector.
More...
#include <vec2.h>
Creates an Vec2 structure with functions Creates an Vec2 structure with overloaded operators to create a new variable type for use as a 2D vector.
Constructs an Vec2 Constructs the Vec2 setting the values to 0,0
Vec2::Vec2 |
( |
float |
inputX, |
|
|
float |
inputY |
|
) |
| |
|
inline |
Constructs a Vec2 Constructs the Vec2 setting the values to the input coordinates
- Parameters
-
float | The inputed x position |
float | The inputed y position |
Overloads the += operator Overloads the += operator allowing a Vec2 variable to use +=
- Parameters
-
Overloads the -= operator Overloads the -= operator allowing a Vec2 variable to use -=
- Parameters
-
The documentation for this struct was generated from the following file: