用于描述椭球体表面矩形轮廓线的几何类,生成仅包含矩形边界的线框几何体,不填充内部区域。
Name | Type | Default | Description |
---|---|---|---|
options.rectangle |
Rectangle | 一个地图投影矩形,其北、南、东、西属性以弧度为单位。 | |
options.ellipsoid |
Ellipsoid |
Ellipsoid.WGS84
|
optional 矩形所在的椭球体。 |
options.granularity |
Number |
Math.RADIANS_PER_DEGREE
|
optional 经度每一经纬度之间的距离,以弧度为单位。确定buffer中位置的数目。 |
options.height |
Number |
0.0
|
optional 矩形与椭球表面之间的距离,以米为单位。 |
options.rotation |
Number |
0.0
|
optional 矩形的旋转,以弧度为单位。正旋转是逆时针的。 |
options.extrudedHeight |
Number | optional 矩形的挤压面与椭球表面之间的距离,以米为单位。 |
Throws:
- RectangleOutlineGeometry#createGeometry
Example:
var rectangle = new SuperMap3D.RectangleOutlineGeometry({
ellipsoid : SuperMap3D.Ellipsoid.WGS84,
rectangle : SuperMap3D.Rectangle.fromDegrees(-80.0, 39.0, -74.0, 42.0),
height : 10000.0
});
var geometry = SuperMap3D.RectangleOutlineGeometry.createGeometry(rectangle);
See:
Members
-
用于将对象打包到数组中的元素数量。
Methods
-
staticSuperMap3D.RectangleOutlineGeometry.createGeometry(rectangleGeometry) → Geometry|undefined
-
计算矩形轮廓的几何表示,包括其顶点、索引和包围球。
Name Type Description rectangleGeometry
RectangleOutlineGeometry 矩形轮廓的描述。 Returns:
计算出的顶点和索引。Throws:
-
DeveloperError : 旋转矩形无效。
-
-
将提供的实例存储到提供的数组中。
Name Type Default Description value
RectangleOutlineGeometry 要打包的值。 array
Array.<Number> 要装入的数组。 startingIndex
Number 0
optional 开始打包元素的数组的索引。 Returns:
被装入的数组。 -
staticSuperMap3D.RectangleOutlineGeometry.unpack(array, startingIndex, result) → RectangleOutlineGeometry
-
从打包数组中检索实例。
Name Type Default Description array
Array.<Number> 打包数组。 startingIndex
Number 0
optional 要解压缩的元素的起始索引。 result
RectangleOutlineGeometry optional 存储结果的对象。 Returns:
修改后的结果参数,或者一个新的四元数实例(如果没有提供)。