HeadingPitchRange

new Cesium.HeadingPitchRange(heading, pitch, range)

定义局部帧中的航向角、俯仰角和范围。 航向是从局部东方向的旋转,其中正角度向南增加。 俯仰是相对于局部 xy 平面的旋转。正俯仰角位于平面上方。负螺距 角度低于平面。Range 是距帧中心的距离。
Name Type Default Description
heading number 0.0 optional 航向角,以弧度为单位。
pitch number 0.0 optional 以弧度为单位的俯仰角。
range number 0.0 optional 距中心的距离,单位为米。

Members

航向是从局部东方向的旋转,其中正角度向南增加。
Default Value: 0.0
俯仰是相对于局部 xy 平面的旋转。正俯仰角 位于平面上方。负俯仰角位于平面下方。
Default Value: 0.0
Range 是距本地帧中心的距离。
Default Value: 0.0

Methods

static Cesium.HeadingPitchRange.clone(hpr, result)HeadingPitchRange

复制HeadingPitchRange instance.
Name Type Description
hpr HeadingPitchRange The HeadingPitchRange to duplicate.
result HeadingPitchRange optional 要在其上存储结果的对象。
Returns:
修改后的结果参数或者新的 HeadingPitchRange 实例(如果未提供)。(如果 hpr 未定义,则返回 undefined)
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.