mirror of
https://github.com/okalachev/flix.git
synced 2025-08-17 09:06:11 +00:00
Use radians macro, minor change
This commit is contained in:
@@ -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)))
|
||||
|
||||
|
Reference in New Issue
Block a user