Go to the source code of this file.
|
struct | Vec2 |
| 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...
|
|
Overloads the * operator Overloads the * operator allowing a Vec2 to be multiplied by a scalar
- Parameters
-
Vec2 | One of the input Vec2's |
float | the scalar to multiply by |
Overloads the + operator Overloads the + operator allowing Vec2's to be added to each other
- Parameters
-
Overloads the - operator Overloads the - operator allowing a Vec2 to be inverted
- Parameters
-
Overloads the - operator Overloads the - operator allowing Vec2's to be subtracted from each other
- Parameters
-
Overloads the / operator Overloads the / operator allowing a Vec2 to be divided by a scalar
- Parameters
-
Vec2 | One of the input Vec2's |
float | the scalar to divide by |