Sky Zone Omega - PC Version
 All Classes Namespaces Files Functions Variables Macros
Classes | Functions
C_Vec2.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  C_Vec2
 Contains the Vec2 structure with functions and overloaded operators. More...
 

Functions

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

Function Documentation

C_Vec2 operator* ( C_Vec2  vecInA,
float  scalar 
)
inline

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

Parameters
vecInAOne of the input Vec2's.
scalarThe scalar to multiply by.
Returns
The new vector.
C_Vec2 operator* ( C_Vec2  vecInA,
C_Vec2  vecInB 
)
inline

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

Parameters
vecInAOne of the input Vec2's.
vecInBOne of the input Vec2's.
Returns
The new vector.
C_Vec2 operator+ ( C_Vec2  vecInA,
C_Vec2  vecInB 
)
inline

Overloads the + operator.

Parameters
vecInAOne of the input Vec2's.
vecInBOne of the input Vec2's.
Returns
The new vector.
C_Vec2 operator- ( C_Vec2  vecIn)
inline

Overloads the - operator allowing a Vec2 to be inverted.

Parameters
vecInThe input Vec2.
Returns
The new vector.
C_Vec2 operator- ( C_Vec2  vecInA,
C_Vec2  vecInB 
)
inline

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

Parameters
vecInAOne of the input Vec2's.
vecInBOne of the input Vec2's.
Returns
The new vector.
C_Vec2 operator/ ( C_Vec2  vecInA,
float  scalar 
)
inline

Overloads the / operator allowing a Vec2 to be divided by a scalar.

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