mirror of
https://github.com/danog/Telegram.git
synced 2025-01-07 13:40:31 +01:00
13 lines
245 B
C
13 lines
245 B
C
|
#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;
|
||
|
}
|