地形或三维平铺上多段线的描述。仅用于
GroundPolylinePrimitive
。Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | 具有以下属性的选项:
|
Throws:
-
DeveloperError :至少需要两个位置。
Example:
var positions = Cesium.Cartesian3.fromDegreesArray([
-112.1340164450331, 36.05494287836128,
-112.08821010582645, 36.097804071380715,
-112.13296079730024, 36.168769146801104
]);
var geometry = new Cesium.GroundPolylineGeometry({
positions : positions
});
See:
Members
arcType : ArcType
折线必须遵循的路径类型。有效选项为
ArcType.GEODESIC
和ArcType.RHUMB
。-
Default Value:
ArcType.GEODESIC
用于插值的距离间隔选项.点. 零表示没有插值。
默认值9999.0允许使用32位浮点的厘米精度。
-
Default Value:
9999.0
在几何图形创建过程中,是否将在最后一条直线位置和第一条直线位置之间添加线段,以使此多段线成为一个循环。
如果几何体有两个位置,此参数将被忽略。
-
Default Value:
false
以像素为单位的屏幕空间宽度。
Methods
将提供的实例存储到提供的数组中。
Name | Type | Default | Description |
---|---|---|---|
value |
PolygonGeometry | 要打包的值。 | |
array |
Array.<Number> | 要打包到的数组。 | |
startingIndex |
Number |
0
|
optional 数组中开始打包元素的索引。 |
Returns:
被压缩到的数组
从压缩数组检索实例。
Name | Type | Default | Description |
---|---|---|---|
array |
Array.<Number> | 压缩数组。 | |
startingIndex |
Number |
0
|
optional 要解包的元素的起始索引。 |
result |
PolygonGeometry | optional 要将结果存储到其中的对象。 |