Skip to content

Instantly share code, notes, and snippets.

@newmarcel
Created October 8, 2012 10:36
Show Gist options
  • Save newmarcel/3851887 to your computer and use it in GitHub Desktop.
Save newmarcel/3851887 to your computer and use it in GitHub Desktop.
Degrees and radians conversion macros
#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