Sky Zone Omega - PC Version
 All Classes Namespaces Files Functions Variables Macros
Functions
C_Utilities Namespace Reference

Contains utility functions for use within the code. More...

Functions

float getPI ()
 Gets the value for PI. More...
 
float convertDegreeToRadian (float angle)
 Converts the degree to a radian. More...
 
float convertRadianToDegree (float angle)
 Converts the radian to a degree. More...
 
void logI (std::string message)
 Logs the information message. More...
 
void logE (std::string message)
 Logs the error message. More...
 
bool rectRectIntersect (C_Vec2 PosBoxA, C_Vec2 DimBoxA, C_Vec2 PosBoxB, C_Vec2 DimBoxB)
 Checks to see if two rectangles intersect. More...
 

Detailed Description

Contains utility functions for use within the code.

Author
Jamie Slowgrove

Function Documentation

float C_Utilities::convertDegreeToRadian ( float  angle)

Converts the degree to a radian.

Parameters
angleThe angle to convert.
Returns
The converted radian.
float C_Utilities::convertRadianToDegree ( float  angle)

Converts the radian to a degree.

Parameters
angleThe angle to convert.
Returns
The converted degree.
float C_Utilities::getPI ( )

Gets the value for PI.

Returns
The value for PI.
void C_Utilities::logE ( std::string  message)

Logs the error message.

Parameters
messageThe message.

Here is the caller graph for this function:

void C_Utilities::logI ( std::string  message)

Logs the information message.

Parameters
messageThe message.
bool C_Utilities::rectRectIntersect ( C_Vec2  PosBoxA,
C_Vec2  DimBoxA,
C_Vec2  PosBoxB,
C_Vec2  DimBoxB 
)

Checks to see if two rectangles intersect.

Parameters
PosBoxAThe position of the first rectangle.
DimBoxAThe dimensions of the first rectangle.
PosBoxBThe position of the second rectangle.
DimBoxBThe dimensions of the second rectangle.
Returns
True if the rectangles intersect

Here is the caller graph for this function: