# Class: GeoPoints

## GeoPoints()

#### new GeoPoints()

Source:
  - GeoPoints.js, line 13

### Methods

#### (async, static) append(dot) → {Promise}

添加3维点

##### Parameters:

Name | Type | Description
--- | --- | ---
`dot` |  | 三维点坐标

Source:
  - GeoPoints.js, line 96

##### Returns:

添加成功返回1，失败返回0

Type
  Promise

#### (async, static) createObj() → {Promise.<GeoPoints>}

构造一个新的 GeoPoints 对象

Source:
  - GeoPoints.js, line 34

##### Returns:

Type
  Promise.<GeoPoints>

#### (async, static) del(index) → {Promise}

删除指定的某个3维点

##### Parameters:

Name | Type | Description
--- | --- | ---
`index` |  | 指定的点序列

Source:
  - GeoPoints.js, line 110

##### Returns:

删除成功返回1，失败返回0

Type
  Promise

#### (async, static) distance(type, destGeom) → {Promise}

计算两个几何对象间的距离

##### Parameters:

Name | Type | Description
--- | --- | ---
`type` |  | 距离计算方法
`destGeom` |  | 第二个几何对象

Source:
  - GeoPoints.js, line 78

##### Returns:

距离长度

Type
  Promise

#### (async, static) get(index) → {Promise.<Dot3D>}

取指定的3维点

##### Parameters:

Name | Type | Description
--- | --- | ---
`index` |  | 指定的点序列

Source:
  - GeoPoints.js, line 124

##### Returns:

获取到的三维点坐标

Type
  Promise.<Dot3D>

#### (async, static) getDimension() → {Promise}

取几何维数

Source:
  - GeoPoints.js, line 63

##### Returns:

几何维数

Type
  Promise

#### (async, static) getDotNum() → {Promise}

取点的总个数

Source:
  - GeoPoints.js, line 140

##### Returns:

点的总个数

Type
  Promise

#### (async, static) getDots() → {Promise.<Dots3D>}

取3维点序列

Source:
  - GeoPoints.js, line 153

##### Returns:

整个三维点序列

Type
  Promise.<Dots3D>

#### (async, static) getType() → {Promise}

获取几何对象的类型

Source:
  - GeoPoints.js, line 50

##### Returns:

几何对象类型

Type
  Promise

#### (async, static) setDots(dots) → {Promise}

设置3维点序列

##### Parameters:

Name | Type | Description
--- | --- | ---
`dots` |  | 待设置的三维点序列

Source:
  - GeoPoints.js, line 170

##### Returns:

设置成功返回1，失败返回0

Type
  Promise