Level H Engine
Classes | Functions
Vec4.h File Reference
#include "math.h"
Include dependency graph for Vec4.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Vec4
 Contains the Vec4 structure with functions and overloaded operators. More...
 

Functions

Vec4 operator- (Vec4 vecIn)
 Overloads the - operator allowing a Vec4 to be inverted. More...
 
Vec4 operator- (Vec4 vecInA, Vec4 vecInB)
 Overloads the - operator allowing Vec4's to be subtracted from each other. More...
 
Vec4 operator+ (Vec4 vecInA, Vec4 vecInB)
 Overloads the + operator. More...
 
Vec4 operator/ (Vec4 vecInA, float scalar)
 Overloads the / operator allowing a Vec4 to be divided by a scalar. More...
 
Vec4 operator* (Vec4 vecInA, float scalar)
 Overloads the * operator allowing a Vec4 to be multiplied by a scalar. More...
 
Vec4 operator* (Vec4 vecInA, Vec4 vecInB)
 Overloads the * operator allowing a Vec4 to be multiplied by another Vec4. More...
 

Function Documentation

◆ operator*() [1/2]

Vec4 operator* ( Vec4  vecInA,
float  scalar 
)
inline

Overloads the * operator allowing a Vec4 to be multiplied by a scalar.

Parameters
vecInAOne of the input Vec4's.
scalarThe scalar to multiply by.
Returns
The new vector.

◆ operator*() [2/2]

Vec4 operator* ( Vec4  vecInA,
Vec4  vecInB 
)
inline

Overloads the * operator allowing a Vec4 to be multiplied by another Vec4.

Parameters
vecInAOne of the input Vec4's.
vecInBOne of the input Vec4's.
Returns
The new vector.

◆ operator+()

Vec4 operator+ ( Vec4  vecInA,
Vec4  vecInB 
)
inline

Overloads the + operator.

Parameters
vecInAOne of the input Vec4's.
vecInBOne of the input Vec4's.
Returns
The new vector.

◆ operator-() [1/2]

Vec4 operator- ( Vec4  vecIn)
inline

Overloads the - operator allowing a Vec4 to be inverted.

Parameters
vecInThe input Vec4.
Returns
The new vector.

◆ operator-() [2/2]

Vec4 operator- ( Vec4  vecInA,
Vec4  vecInB 
)
inline

Overloads the - operator allowing Vec4's to be subtracted from each other.

Parameters
vecInAOne of the input Vec4's.
vecInBOne 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
vecInAOne of the input Vec4's.
scalarThe scalar to divide by.
Returns
The new vector.