Radians to Degrees
#define RADIANS_TO_DEGREES(radians) ((radians) * (180.0 / M_PI)) ... NSLog(@"Output radians as degrees: %f", RADIANS_TO_DEGREES(0.584));
Degrees to Radians
#define DEGREES_TO_RADIANS(angle) ((angle) / 180.0 * M_PI) ... NSLog(@"Output degrees as radians: %f", DEGREES_TO_RADIANS(60));
No comments:
Post a Comment