Last active
April 14, 2018 18:05
-
-
Save rtking1993/a2ddbfd6d46d1caa7f82f55d7f715680 to your computer and use it in GitHub Desktop.
Utils to convert degrees to radians
This file contains 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
// MARK: Frameworks | |
import UIKit | |
// MARK: Helper Methods | |
func radians(from degrees: CGFloat) -> CGFloat { | |
return ((degrees * .pi) / 180) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment