Use radians macro, minor change

This commit is contained in:
Oleg Kalachev
2024-01-12 00:43:52 +03:00
parent 1ed05a94dd
commit f4aaf0f4f3
4 changed files with 9 additions and 7 deletions

View File

@@ -14,6 +14,8 @@
#define PI 3.1415926535897932384626433832795
#define DEG_TO_RAD 0.017453292519943295769236907684886
#define RAD_TO_DEG 57.295779513082320876798154814105
#define radians(deg) ((deg)*DEG_TO_RAD)
#define degrees(rad) ((rad)*RAD_TO_DEG)
#define constrain(amt,low,high) ((amt)<(low)?(low):((amt)>(high)?(high):(amt)))