31 #define M_PI 3.14159265358979323846f
34 #ifndef NUMBER_OF_CUBE_FACES
36 #define NUMBER_OF_CUBE_FACES (6)
39 #ifndef NUMBER_OF_POINT_COORDINATES
41 #define NUMBER_OF_POINT_COORDINATES (3)
44 #ifndef NUMBER_OF_TRIANGLE_VERTICES
46 #define NUMBER_OF_TRIANGLE_VERTICES (3)
49 #ifndef NUMBER_OF_TRIANGLES_IN_QUAD
51 #define NUMBER_OF_TRIANGLES_IN_QUAD (2)
66 return M_PI * degrees / 180.0f;
78 return radians * 180.0f /
M_PI;
float radiansToDegrees(float radians)
Convert an angle in radians to degrees.
#define M_PI
The value of pi approximation.
float degreesToRadians(float degrees)
Convert an angle in degrees to radians.