Skip to content

Instantly share code, notes, and snippets.

@tmcw
Last active December 14, 2015 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmcw/5069332 to your computer and use it in GitHub Desktop.
Save tmcw/5069332 to your computer and use it in GitHub Desktop.
Made for [mistakes](http://macwright.org/mistakes/#5069332)
// degrees to radians
// (90 * D2R) = 1.57; // Math.PI / 2
D2R = Math.PI / 180;
// radians to degrees
// (1.57 * R2D) = 90;
R2D = 180 / Math.PI;
D2R * R2D; // inverses of each other
180 * D2R;
// == Math.PI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment