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.
- Author
- Jamie Slowgrove Reference ~ This is a modified version of my AI Assignment 1 Vec2 class.
Constructs the Vec2. Constructs the Vec2 setting the values to 0,0.
JAM_Vec2::JAM_Vec2 |
( |
float |
inputX, |
|
|
float |
inputY |
|
) |
| |
|
inline |
Constructs the Vec2. Constructs the Vec2 setting the values to the input coordinates.
- Parameters
-
inputX | The inputed x position. |
inputY | The inputed y position. |
Overloads the += operator. Overloads the += operator allowing a Vec2 variable to use +=.
- Parameters
-
- Returns
- The new vector.
Overloads the -= operator. Overloads the -= operator allowing a Vec2 variable to use -=.
- Parameters
-
- Returns
- The new vector.
The documentation for this struct was generated from the following file: