描述以原点为中心、具有单位宽度和长度的平面的几何形状。
Name | Type | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
对象,具有以下属性:
|
Example:
var planeGeometry = new Cesium.PlaneGeometry({
vertexFormat : Cesium.VertexFormat.POSITION_ONLY
});
Members
用于将对象打包成数组的元素数。
Methods
staticCesium.PlaneGeometry.createGeometry(planeGeometry) → Geometry|undefined
计算平面的几何表示,包括其顶点、索引和包围球。
Name | Type | Description |
---|---|---|
planeGeometry |
PlaneGeometry | 平面的描述。 |
Returns:
计算的顶点和索引。
将提供的实例存储到提供的数组中。
Name | Type | Default | Description |
---|---|---|---|
value |
PlaneGeometry | 要包装的值。 | |
array |
Array.<Number> | 要被包装到的数组。 | |
startingIndex |
Number |
0
|
optional 开始包装元素的数组索引。 |
Returns:
被包装到的数组。
staticCesium.PlaneGeometry.unpack(array, startingIndex, result) → PlaneGeometry
从已包装的数组中检索实例。
Name | Type | Default | Description |
---|---|---|---|
array |
Array.<Number> | 包装的数组。 | |
startingIndex |
Number |
0
|
optional 要解包的元素的起始索引。 |
result |
PlaneGeometry | optional 存储结果的对象。 |
Returns:
修改后的结果参数或新的PlaneGeometry实例(如果没有提供)。