Created
October 8, 2012 10:36
-
-
Save newmarcel/3851887 to your computer and use it in GitHub Desktop.
Degrees and radians conversion macros
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define DEGREES_TO_RADIANS(degrees) ((M_PI * degrees) / 180.0) | |
#define RADIANS_TO_DEGREES(radians) ((180.0 / M_PI) * radians) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment