36 lines
909 B
Objective-C
36 lines
909 B
Objective-C
//
|
|
// AMapNaviGeometryUtils.h
|
|
// AMapNaviKit
|
|
//
|
|
// Created by eidanlin on 2021/1/27.
|
|
// Copyright © 2021 Amap. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "AMapNaviCommonObj.h"
|
|
#import "AMapNaviHeaderHandler.h"
|
|
#import "AMapNaviKitMacro.h"
|
|
#import "AMapNaviDefine.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface AMapNaviGeometryUtils : NSObject
|
|
|
|
#pragma mark - 公共 Public
|
|
|
|
+ (double)normalizeDegree:(double)degree;
|
|
|
|
//计算两个点的距离,内部实现一样
|
|
//Calculate the distance between two points, the internal implementation is the same
|
|
+ (double)calcDistanceBetweenPoint:(AMapNaviPoint *)pointA andPoint:(AMapNaviPoint *)pointB;
|
|
+ (double)distanceBetweenCoordinates:(AMapNaviPoint * )pointA andPoint:(AMapNaviPoint *)pointB;
|
|
|
|
|
|
+ (AMapNaviPoint *)stringToNaviPoint:(NSString *)str;
|
|
|
|
+ (CLLocationCoordinate2D)stringToCoordinate:(NSString *)str;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|