Skip to content

Instantly share code, notes, and snippets.

@rtking1993

rtking1993/Utils.swift

Last active Apr 14, 2018
Embed
What would you like to do?
Utils to convert degrees to radians
// 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