new GeoPoints()
- Source:
Methods
(async, static) append(dot) → {Promise}
添加3维点
Parameters:
| Name | Type | Description |
|---|---|---|
dot |
三维点坐标 |
- Source:
Returns:
添加成功返回1,失败返回0
- Type
- Promise
(async, static) createObj() → {Promise.<GeoPoints>}
构造一个新的 GeoPoints 对象
- Source:
Returns:
- Type
- Promise.<GeoPoints>
(async, static) del(index) → {Promise}
删除指定的某个3维点
Parameters:
| Name | Type | Description |
|---|---|---|
index |
指定的点序列 |
- Source:
Returns:
删除成功返回1,失败返回0
- Type
- Promise
(async, static) distance(type, destGeom) → {Promise}
计算两个几何对象间的距离
Parameters:
| Name | Type | Description |
|---|---|---|
type |
距离计算方法 | |
destGeom |
第二个几何对象 |
- Source:
Returns:
距离长度
- Type
- Promise
(async, static) get(index) → {Promise.<Dot3D>}
取指定的3维点
Parameters:
| Name | Type | Description |
|---|---|---|
index |
指定的点序列 |
- Source:
Returns:
获取到的三维点坐标
- Type
- Promise.<Dot3D>
(async, static) getDimension() → {Promise}
取几何维数
- Source:
Returns:
几何维数
- Type
- Promise
(async, static) getDotNum() → {Promise}
取点的总个数
- Source:
Returns:
点的总个数
- Type
- Promise
(async, static) getDots() → {Promise.<Dots3D>}
取3维点序列
- Source:
Returns:
整个三维点序列
- Type
- Promise.<Dots3D>
(async, static) getType() → {Promise}
获取几何对象的类型
- Source:
Returns:
几何对象类型
- Type
- Promise
(async, static) setDots(dots) → {Promise}
设置3维点序列
Parameters:
| Name | Type | Description |
|---|---|---|
dots |
待设置的三维点序列 |
- Source:
Returns:
设置成功返回1,失败返回0
- Type
- Promise