Is it possible to change a setting, property, etc in Swift for iOS so that it assumes degrees for trigonometry calculations rather than radians?
For example si
si
You can define global functions that return the sin of a degree value. Just place the function in a swift file outside of any class.
func sind(degrees: Double) -> Double { return sin(degrees * M_PI / 180.0) }
So anywhere in your project you can just use:
sind(90) // Returns 1