Very mandatory self-explained function.
/** Convert from degrees to radians.
@param deg Degrees value.
@return Returns the radians value.
@see radiansToDegrees:
*/
CGFloat degreesToRadians (CGFloat deg) {
return deg * (M_PI / 180.0f);
}
Download the ready-for-use source file (.m) of http://adf.ly/QQEIQ
No comments:
Post a Comment