1
0
mirror of https://github.com/danog/Telegram.git synced 2025-01-07 13:40:31 +01:00
Telegram/thirdparty/RMIntro/core/math_helper.h

13 lines
245 B
C
Raw Normal View History

2014-07-10 16:11:09 +02:00
#include <math.h>
static inline float deg_to_radf(float deg) {
return deg * (float)M_PI / 180.0f;
}
static inline double MAXf(float a, float b) {
return a > b ? a : b;
}
static inline double MINf(float a, float b) {
return a < b ? a : b;
}