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