mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Module refactoring
This commit is contained in:
13
submodules/RMIntro/Sources/core/math_helper.h
Executable file
13
submodules/RMIntro/Sources/core/math_helper.h
Executable file
@@ -0,0 +1,13 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user