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

Go to the source code of this file.

Classes

struct  Mat4
 Contains the Mat4 structure with functions and overloaded operators. This is row major. More...
 

Functions

Mat4 operator+ (Mat4 mIn, float s)
 Overloads the + operator allowing a Mat4 to be added to a scalar. More...
 
Mat4 operator+ (Mat4 mInA, Mat4 mInB)
 Overloads the + operator allowing a Mat4 to be added to a scalar. More...
 
Mat4 operator- (Mat4 mInA, float s)
 Overloads the - operator allowing a Mat4 to be added to a scalar. More...
 
Mat4 operator- (Mat4 mInA, Mat4 mInB)
 Overloads the - operator allowing a Mat4 to be subtracted from a scalar. More...
 
Mat4 operator* (Mat4 mInA, float s)
 Overloads the * operator allowing a Mat4 to be multiplied to a scalar. More...
 
Mat4 operator* (Mat4 mInA, Mat4 mInB)
 Overloads the * operator allowing a Mat4 to be multiplied with another Mat4. REMEMBER: Mat1 * Mat2 != Mat2 * Mat1. More...
 

Function Documentation

◆ operator*() [1/2]

Mat4 operator* ( Mat4  mInA,
float  s 
)
inline

Overloads the * operator allowing a Mat4 to be multiplied to a scalar.

Parameters
mInAThe input Mat4.
sThe scalar to add.
Returns
The new Mat4.

◆ operator*() [2/2]

Mat4 operator* ( Mat4  mInA,
Mat4  mInB 
)
inline

Overloads the * operator allowing a Mat4 to be multiplied with another Mat4. REMEMBER: Mat1 * Mat2 != Mat2 * Mat1.

Parameters
matInAAn input Mat4.
matInBAn input Mat4.
Returns
The new Mat4.

◆ operator+() [1/2]

Mat4 operator+ ( Mat4  mIn,
float  s 
)
inline

Overloads the + operator allowing a Mat4 to be added to a scalar.

Parameters
mInThe input Mat4.
sThe scalar to add.
Returns
The new Mat4.

◆ operator+() [2/2]

Mat4 operator+ ( Mat4  mInA,
Mat4  mInB 
)
inline

Overloads the + operator allowing a Mat4 to be added to a scalar.

Parameters
mInAAn input Mat4.
mInBAn input Mat4.
Returns
The new Mat4.

◆ operator-() [1/2]

Mat4 operator- ( Mat4  mInA,
float  s 
)
inline

Overloads the - operator allowing a Mat4 to be added to a scalar.

Parameters
mInAThe input Mat4.
sThe scalar to add.
Returns
The new Mat4.

◆ operator-() [2/2]

Mat4 operator- ( Mat4  mInA,
Mat4  mInB 
)
inline

Overloads the - operator allowing a Mat4 to be subtracted from a scalar.

Parameters
mInAAn input Mat4.
mInBAn input Mat4.
Returns
The new Mat4.