You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
728 B
24 lines
728 B
![]()
2 years ago
|
//
|
||
|
// Util.h
|
||
|
// test
|
||
|
//
|
||
|
// Created by yi chen on 3/24/15.
|
||
|
// Copyright (c) 2015 yi chen. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import <Foundation/Foundation.h>
|
||
|
#import <MapKit/MapKit.h>
|
||
|
//1弧度对应多少度
|
||
|
#define RadToDeg 57.2957795130823228646477218717336654663086 //180.f / M_PI
|
||
|
//弧度
|
||
|
#define DegToRad 0.0174532925199432954743716805978692718782 // M_PI / 180.f
|
||
|
|
||
|
@interface Util : NSObject
|
||
|
|
||
|
+ (CLLocationDirection)calculateCourseFromMapPoint:(MKMapPoint)point1 to:(MKMapPoint)point2;
|
||
|
|
||
|
+ (CLLocationDirection)calculateCourseFromCoordinate:(CLLocationCoordinate2D)coord1 to:(CLLocationCoordinate2D)coord2;
|
||
|
+ (CLLocationDirection)fixNewDirection:(CLLocationDirection)newDir basedOnOldDirection:(CLLocationDirection)oldDir;
|
||
|
|
||
|
@end
|