Sky Zone Omega - PC Version
 All Classes Namespaces Files Functions Variables Macros
C_Utilities.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 #include <SDL.h>
5 #include "C_Vec2.h"
6 
8 #define PI 3.141596f
9 
14 namespace C_Utilities
15 {
20  float getPI();
21 
27  float convertDegreeToRadian(float angle);
28 
34  float convertRadianToDegree(float angle);
35 
40  void logI(std::string message);
41 
46  void logE(std::string message);
47 
56  bool rectRectIntersect(C_Vec2 PosBoxA, C_Vec2 DimBoxA, C_Vec2 PosBoxB, C_Vec2 DimBoxB);
57 }
bool rectRectIntersect(C_Vec2 PosBoxA, C_Vec2 DimBoxA, C_Vec2 PosBoxB, C_Vec2 DimBoxB)
Checks to see if two rectangles intersect.
Definition: C_Utilities.cpp:30
float convertRadianToDegree(float angle)
Converts the radian to a degree.
Definition: C_Utilities.cpp:15
Contains utility functions for use within the code.
Definition: C_Utilities.cpp:3
void logI(std::string message)
Logs the information message.
Definition: C_Utilities.cpp:20
Contains the Vec2 structure with functions and overloaded operators.
Definition: C_Vec2.h:7
float getPI()
Gets the value for PI.
Definition: C_Utilities.cpp:5
void logE(std::string message)
Logs the error message.
Definition: C_Utilities.cpp:25
float convertDegreeToRadian(float angle)
Converts the degree to a radian.
Definition: C_Utilities.cpp:10