Created
April 24, 2019 11:10
-
-
Save nafferro/4e7538669bc2bd6b635a9985d43ba03f to your computer and use it in GitHub Desktop.
Convert degrees to semicircle
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
| func convertDegreesToSemicircle (degrees: Double) -> Int32 { | |
| return Int32(degrees * (pow(2.0, 31.0) / 180)) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment