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