diff options
author | Jason Wray <jason@kulturny.com> | 2015-10-02 18:54:53 -0400 |
---|---|---|
committer | Jason Wray <jason@kulturny.com> | 2015-10-02 18:54:53 -0400 |
commit | 29da7bb26d64cea59e8482f5d58a46cc848904cc (patch) | |
tree | 35666f995a282760fe0bc256a02f27d1d2d3502b /include | |
parent | e565808de06290ac975e3892b9bc206cb7147450 (diff) | |
download | qtlocation-mapboxgl-29da7bb26d64cea59e8482f5d58a46cc848904cc.tar.gz |
[ios] describe radians↔degrees functions
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/ios/MGLGeometry.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mbgl/ios/MGLGeometry.h b/include/mbgl/ios/MGLGeometry.h index 847b7cc04d..05bec9fc08 100644 --- a/include/mbgl/ios/MGLGeometry.h +++ b/include/mbgl/ios/MGLGeometry.h @@ -83,11 +83,13 @@ NS_INLINE NSString *MGLStringFromCoordinateBounds(MGLCoordinateBounds bounds) { bounds.ne.latitude, bounds.ne.longitude]; } +/** Returns radians, converted from degrees. */ NS_INLINE CGFloat MGLRadiansFromDegrees(CLLocationDegrees degrees) { return (CGFloat)(degrees * M_PI) / 180; } +/** Returns degrees, converted from radians. */ NS_INLINE CLLocationDegrees MGLDegreesFromRadians(CGFloat radians) { return radians * 180 / M_PI; |