3 #if defined(__GNUC__) || defined(__clang__) 4 #define DEPRECATED __attribute__((deprecated)) 5 #elif defined(_MSC_VER) 6 #define DEPRECATED __declspec(deprecated) 8 #pragma message("WARNING: You need to implement DEPRECATED for this compiler") 18 #include <glm/glm.hpp> 19 #include <glm/gtc/matrix_transform.hpp> 20 #include <glm/gtc/type_ptr.hpp> 21 #include <glm/gtx/string_cast.hpp> 26 return (
double)degrees * M_PI / 180.0f;
30 return (
double)radians * 180.0f / M_PI;
36 return (max - min) * ((number - minX) / (maxX - minX)) + min;
43 T var = startRange + (
T(rand()) /
T(RAND_MAX) * (endRange - startRange));
T DEPRECATED getRandomValue(T startRange, T endRange)
Definition: maths.h:41
float y
Definition: vec4.h:9
T DEPRECATED clamp(T number, T min, T max, T maxX, T minX)
Definition: maths.h:34
float z
Definition: vec3.h:11
DEPRECATED double toDegrees(float radians)
Definition: maths.h:29
Definition: audioclip.cpp:3
float y
Definition: vec3.h:11
float z
Definition: vec4.h:9
#define DEPRECATED
Definition: maths.h:9
DEPRECATED double toRadians(float degrees)
Definition: maths.h:25
float x
Definition: vec4.h:9
float x
Definition: vec3.h:11
float w
Definition: vec4.h:9