new Slope(optionsopt)
坡度坡向
Parameters:
Name | Type | Attributes | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
带有以下属性的对象: Properties
|
Methods
add(arr, optionsopt)
添加分析区域
Parameters:
Name | Type | Attributes | Default | Description | ||||||
---|---|---|---|---|---|---|---|---|---|---|
arr |
Array | 分析区域,点类型Cartesian3 |
||||||||
options |
Object |
<optional> |
{}
|
参数等同于构造函数中的options,默认使用构造函数传入的options,也可重新传入 Properties
|
clear()
清除所有分析结果
clearByID(id)
清除ID对应的分析结果
Parameters:
Name | Type | Description |
---|---|---|
id |
String | id值 |
destroy()
销毁坡度对象
getSlope(c1, c2) → {Number}
获取两点之间的坡度
Parameters:
Name | Type | Description |
---|---|---|
c1 |
Cartographic | 起点 |
c2 |
Cartographic | 终点 |
Returns:
坡度值
- Type
- Number