/
Bounds.d.ts
72 lines (56 loc) · 1.1 KB
/
Bounds.d.ts
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import { LngLat } from './LngLat'
/**
* 矩形范围的构造函数.
*
* @export
* @class Bounds
*/
export class Bounds {
/**
* Creates an instance of Bounds.
* 参数southWest、northEast分别代表地物对象西南角经纬度和东北角经纬度值。
* @param {LngLat} southWest
* @param {LngLat} northEast
* @memberof Bounds
*/
constructor(
southWest: LngLat,
northEast: LngLat
)
/**
*指定点坐标是否在矩形范围内
*
* @param {LngLat} point
* @returns {Boolean}
* @memberof Bounds
*/
contains(point: LngLat): Boolean
/**
*
* 获取当前Bounds的中心点经纬度坐标。
* @returns {LngLat}
* @memberof Bounds
*/
getCenter(): LngLat
/**
* 获取西南角坐标。
*
* @returns {LngLat}
* @memberof Bounds
*/
getSouthWest(): LngLat
/**
*
* 获取东北角坐标
* @returns {LngLat}
* @memberof Bounds
*/
getNorthEast(): LngLat
/**
* 以字符串形式返回地物对象的矩形范围
*
* @returns {String}
* @memberof Bounds
*/
toString(): String
}