以原产地为中心的椭圆形上一个制图矩的轮廓描述.
| Name | Type | Description | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
下列属性的对象 :
|
Throws:
- RectangleOutlineGeometry#createGeometry
Example:
const rectangle = new Cesium.RectangleOutlineGeometry({
ellipsoid : Cesium.Ellipsoid.WGS84,
rectangle : Cesium.Rectangle.fromDegrees(-80.0, 39.0, -74.0, 42.0),
height : 10000.0
});
const geometry = Cesium.RectangleOutlineGeometry.createGeometry(rectangle);
See:
Members
Methods
static Cesium.RectangleOutlineGeometry.createGeometry(rectangleGeometry) → Geometry|undefined
计算一个矩形的轮廓的几何表示,包括它的顶点,指数,和边框.
| Name | Type | Description |
|---|---|---|
rectangleGeometry |
RectangleOutlineGeometry | 矩形轮廓描述. |
Returns:
计算出的顶点和指数.
Throws:
-
DeveloperError : Rotated rectangle is invalid.
将所提供的实例存储到所提供的数组中.
| Name | Type | Default | Description |
|---|---|---|---|
value |
RectangleOutlineGeometry | 包装的价值. | |
array |
Array.<number> | 装入的阵列. | |
startingIndex |
number |
0
|
optional The index into the array at which to start packing the elements. |
Returns:
装入的阵列
static Cesium.RectangleOutlineGeometry.unpack(array, startingIndex, result) → RectangleOutlineGeometry
从组合的数组中获取实例 .
| Name | Type | Default | Description |
|---|---|---|---|
array |
Array.<number> | 装填的阵列. | |
startingIndex |
number |
0
|
optional The starting index of the element to be unpacked. |
result |
RectangleOutlineGeometry | optional 存储结果的对象. |
Returns:
未提供修改的结果参数或新的矩形外线图形实例 .