Contains the Vec2 structure with functions and overloaded operators.
More...
#include <C_Vec2.h>
Contains the Vec2 structure with functions and overloaded operators.
- Author
- Jamie Slowgrove
Constructs the Vec2 setting the values to 0,0.
C_Vec2::C_Vec2 |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
|
inline |
Constructs the Vec2 setting the values to the input coordinates.
- Parameters
-
x | The inputed x position. |
y | The inputed y position. |
C_Vec2::C_Vec2 |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
inline |
Constructs the Vec2 setting the values to the input coordinates.
- Parameters
-
x | The inputed x position. |
y | The inputed y position. |
Overloads the += operator.
- Parameters
-
- Returns
- The new vector.
Overloads the -= operator.
- Parameters
-
- Returns
- The new vector.
The documentation for this struct was generated from the following file: