mirror of
https://github.com/danog/Telegram.git
synced 2025-01-05 20:48:36 +01:00
13 lines
245 B
C
Executable File
13 lines
245 B
C
Executable File
#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;
|
|
} |