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... | |
Contains utility functions for use within the code.
float C_Utilities::convertDegreeToRadian | ( | float | angle | ) |
Converts the degree to a radian.
angle | The angle to convert. |
float C_Utilities::convertRadianToDegree | ( | float | angle | ) |
Converts the radian to a degree.
angle | The angle to convert. |
float C_Utilities::getPI | ( | ) |
Gets the value for PI.
void C_Utilities::logE | ( | std::string | message | ) |
Logs the error message.
message | The message. |
void C_Utilities::logI | ( | std::string | message | ) |
Logs the information message.
message | The message. |
bool C_Utilities::rectRectIntersect | ( | C_Vec2 | PosBoxA, |
C_Vec2 | DimBoxA, | ||
C_Vec2 | PosBoxB, | ||
C_Vec2 | DimBoxB | ||
) |
Checks to see if two rectangles intersect.
PosBoxA | The position of the first rectangle. |
DimBoxA | The dimensions of the first rectangle. |
PosBoxB | The position of the second rectangle. |
DimBoxB | The dimensions of the second rectangle. |