How do I use sin(), cos(), and tan() functions in iOS application? When I use this I didn\'t get the correct value. Example:
sin()
cos()
tan()
The problem is that it's taking the sine of 90 radians, not degrees. Try sin(M_PI_2) for 90°.
sin(M_PI_2)