1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* BMKArcline.h
* BMapKit
*
* Copyright 2011 Baidu Inc. All rights reserved.
*
*/
#import "BMKMultiPoint.h"
#import "BMKOverlay.h"
/// 此类用于定义一段圆弧
@interface BMKArcline : BMKMultiPoint <BMKOverlay>
{
BMKMapRect _boundingMapRect;
bool isYouArc;
}
/**
*根据指定坐标点生成一段圆弧
*@param points 指定的直角坐标点数组(需传入3个点)
*@return 新生成的圆弧对象
*/
+ (BMKArcline *)arclineWithPoints:(BMKMapPoint *)points;
/**
*根据指定经纬度生成一段圆弧
*@param coords 指定的经纬度坐标点数组(需传入3个点)
*@return 新生成的圆弧对象
*/
+ (BMKArcline *)arclineWithCoordinates:(CLLocationCoordinate2D *)coords;
/**
*重新设置圆弧坐标
*@param points 指定的直角坐标点数组(需传入3个点)
*@return 是否设置成功
*/
- (BOOL)setArclineWithPoints:(BMKMapPoint *)points;
/**
*重新设置圆弧坐标
*@param coords 指定的经纬度坐标点数组(需传入3个点)
*@param count 坐标点的个数
*@return 是否设置成功
*/
- (BOOL)setArclineWithCoordinates:(CLLocationCoordinate2D *)coords;
@end