#include "math.h"
Go to the source code of this file.
|
struct | Vec2 |
| Contains the Vec2 structure with functions and overloaded operators. More...
|
|
◆ operator*() [1/2]
Vec2 operator* |
( |
Vec2 |
vecInA, |
|
|
float |
scalar |
|
) |
| |
|
inline |
Overloads the * operator allowing a Vec2 to be multiplied by a scalar.
- Parameters
-
vecInA | One of the input Vec2's. |
scalar | The scalar to multiply by. |
- Returns
- The new vector.
◆ operator*() [2/2]
Overloads the * operator allowing a Vec2 to be multiplied by another Vec2.
- Parameters
-
vecInA | One of the input Vec2's. |
vecInB | One of the input Vec2's. |
- Returns
- The new vector.
◆ operator+()
Overloads the + operator.
- Parameters
-
vecInA | One of the input Vec2's. |
vecInB | One of the input Vec2's. |
- Returns
- The new vector.
◆ operator-() [1/2]
Overloads the - operator allowing a Vec2 to be inverted.
- Parameters
-
- Returns
- The new vector.
◆ operator-() [2/2]
Overloads the - operator allowing Vec2's to be subtracted from each other.
- Parameters
-
vecInA | One of the input Vec2's. |
vecInB | One of the input Vec2's. |
- Returns
- The new vector.
◆ operator/()
Vec2 operator/ |
( |
Vec2 |
vecInA, |
|
|
float |
scalar |
|
) |
| |
|
inline |
Overloads the / operator allowing a Vec2 to be divided by a scalar.
- Parameters
-
vecInA | One of the input Vec2's. |
scalar | The scalar to divide by. |
- Returns
- The new vector.