定义局部框架中的航向角、俯仰角和范围。航向是从当地东方向开始的旋转,正角度向南增加。俯仰角是相对于局部 xy 平面的旋转。正俯仰角位于平面上方。负俯仰角位于平面下方。范围是距框架中心的距离。 Defines a heading angle, pitch angle, and range in a local frame. Heading is the rotation from the local east direction where a positive angle is increasing southward. Pitch is the rotation from the local xy-plane. Positive pitch angles are above the plane. Negative pitch angles are below the plane. Range is the distance from the center of the frame.
| 名称 Name | 类型 Type | 默认值 Default | 说明 Description |
|---|---|---|---|
heading |
number |
0.0
|
可选 optional 以弧度表示的航向角。 The heading angle in radians. |
pitch |
number |
0.0
|
可选 optional 以弧度为单位的俯仰角。 The pitch angle in radians. |
range |
number |
0.0
|
可选 optional 距中心的距离(以米为单位)。 The distance from the center in meters. |
成员 Members
航向是从当地东方向开始的旋转,正角度向南增加。 Heading is the rotation from the local east direction where a positive angle is increasing southward.
-
默认值: Default Value:
0.0
俯仰角是相对于局部 xy 平面的旋转。正俯仰角位于平面上方。负俯仰角位于平面下方。 Pitch is the rotation from the local xy-plane. Positive pitch angles are above the plane. Negative pitch angles are below the plane.
-
默认值: Default Value:
0.0
范围是距局部框架中心的距离。 Range is the distance from the center of the local frame.
-
默认值: Default Value:
0.0
方法 Methods
static Cesium.HeadingPitchRange.clone(hpr, result) → HeadingPitchRange
复制 HeadingPitchRange 实例。 Duplicates a HeadingPitchRange instance.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
hpr |
HeadingPitchRange | 要复制的 HeadingPitchRange。 The HeadingPitchRange to duplicate. |
result |
HeadingPitchRange | 可选 optional 用于存储结果的对象。 The object onto which to store the result. |
返回: Returns:
修改后的结果参数或新的 HeadingPitchRange 实例(如果未提供)。 (如果 hpr 未定义,则返回未定义) The modified result parameter or a new HeadingPitchRange instance if one was not provided. (Returns undefined if hpr is undefined)
