Cesium-(Primitive)-(RectangleGeometry)

文摘   2024-12-30 08:53   宁夏  

RectangleGeometry

image
image

平面矩形几何体

以下是 RectangleGeometry 类的构造函数属性,以表格形式展示:

属性名
类型
默认值
描述
rectangle
Rectangle

具有北、南、东和西属性的地理矩形,单位为弧度。
vertexFormat
VertexFormat
VertexFormat.DEFAULT
可选的,要计算的顶点属性。
ellipsoid
Ellipsoid
Ellipsoid.default
可选的,矩形所在的椭球体。
granularity
number
CesiumMath.RADIANS_PER_DEGREE
可选的,每个经纬度之间的距离,单位为弧度。决定缓冲区中的位置数量。
height
number
0.0
可选的,矩形与椭球体表面之间的距离,单位为米。
rotation
number
0.0
可选的,矩形的旋转角度,单位为弧度。顺时针为正。
stRotation
number
0.0
可选的,纹理坐标的旋转角度,单位为弧度。顺时针为正。
extrudedHeight
number

可选的,矩形拉伸面与椭球体表面之间的距离,单位为米。

以下是 RectangleGeometry 类构造函数可能抛出的错误:

  • DeveloperErroroptions.rectangle.north 必须在区间 [-PI/2, PI/2] 内。
  • DeveloperErroroptions.rectangle.south 必须在区间 [-PI/2, PI/2] 内。
  • DeveloperErroroptions.rectangle.east 必须在区间 [-PI, PI] 内。
  • DeveloperErroroptions.rectangle.west 必须在区间 [-PI, PI] 内。
  • DeveloperErroroptions.rectangle.north 必须大于 options.rectangle.south

以下是 RectangleGeometry 类的静态方法和属性:

GISer世界
热门GIS开源库介绍、GIS开源库实战教程、GIS技术前沿动态(关注GIS技术的最新发展)、GIS行业应用案例分享(分享众多GIS在不同行业中的应用案例)、GIS技术交流互动
 最新文章