以航向、俯仰和滚动表示的旋转。heading 是围绕
负 Z 轴。Pitch 是绕负 y 轴的旋转。Roll 是旋转
正 x 轴。
Name | Type | Default | Description |
---|---|---|---|
heading |
number |
0.0
|
optional 以弧度为单位的航向分量。 |
pitch |
number |
0.0
|
optional 以弧度为单位的音高分量。 |
roll |
number |
0.0
|
optional 以弧度为单位的滚动分量。 |
Members
获取或设置heading.
-
Default Value:
0.0
获取或设置pitch.
-
Default Value:
0.0
获取或设置roll.
-
Default Value:
0.0
Methods
static Cesium.HeadingPitchRoll.clone(headingPitchRoll, result) → HeadingPitchRoll
复制HeadingPitchRoll 实例。
Name | Type | Description |
---|---|---|
headingPitchRoll |
HeadingPitchRoll | 要复制的 HeadingPitchRoll 中。 |
result |
HeadingPitchRoll | optional 要在其上存储结果的对象。 |
Returns:
修改后的结果参数 或者一个新的 HeadingPitchRoll 实例(如果未提供)。(如果 headingPitchRoll 未定义,则返回 undefined)
对提供的 HeadingPitchRolls 组件进行比较,并返回
true
,否则为false
。
Name | Type | Description |
---|---|---|
left |
HeadingPitchRoll | optional 第一个HeadingPitchRoll. |
right |
HeadingPitchRoll | optional 第二个 HeadingPitchRoll. |
Returns:
true
如果左和右相等,否则false
。
static Cesium.HeadingPitchRoll.equalsEpsilon(left, right, relativeEpsilon, absoluteEpsilon) → boolean
对提供的 HeadingPitchRolls 组件进行比较,并返回
true
如果它们通过了绝对或相对耐受性测试,
否则 false
。
Name | Type | Default | Description |
---|---|---|---|
left |
HeadingPitchRoll | optional 第一个HeadingPitchRoll. | |
right |
HeadingPitchRoll | optional 第二个 HeadingPitchRoll. | |
relativeEpsilon |
number |
0
|
optional 用于相等性检验的相对容差。 |
absoluteEpsilon |
number |
relativeEpsilon
|
optional 用于相等性检验的绝对公差。 |
Returns:
true
如果左和右在提供的epsilon内,否则 false
。
static Cesium.HeadingPitchRoll.fromDegrees(以度为单位的标题, 以度为单位调整音高, 以度为单位滚动航向, result) → HeadingPitchRoll
从以度为单位给出的角度返回一个新的 HeadingPitchRoll 实例。
Name | Type | Description |
---|---|---|
以度为单位的标题 |
number | |
以度为单位调整音高 |
number | |
以度为单位滚动航向 |
number | |
result |
HeadingPitchRoll | optional 存储结果的对象。如果未提供,则创建并返回一个新实例。 |
Returns:
一个新的 HeadingPitchRoll 实例
static Cesium.HeadingPitchRoll.fromQuaternion(quaternion, result) → HeadingPitchRoll
从四元数开始计算航向、俯仰和滚动(见 http://en.wikipedia.org/wiki/Conversion_between_quaternions_and_Euler_angles )
Name | Type | Description |
---|---|---|
quaternion |
Quaternion | 从中检索航向、俯仰和滚动的四元数,全部以弧度表示。 |
result |
HeadingPitchRoll | optional 存储结果的对象。如果未提供,则创建并返回一个新实例。 |
Returns:
修改后的结果参数或新的 HeadingPitchRoll 实例(如果未提供)。
clone(result) → HeadingPitchRoll
复制HeadingPitchRoll instance.
Name | Type | Description |
---|---|---|
result |
HeadingPitchRoll | optional 要在其上存储结果的对象。 |
Returns:
修改后的结果参数 or a new HeadingPitchRoll instance if one was not provided.
将此 HeadingPitchRoll 与提供的 HeadingPitchRoll 组件进行比较,并返回
true
,否则为false
。
Name | Type | Description |
---|---|---|
right |
HeadingPitchRoll | optional 右边 HeadingPitchRoll. |
Returns:
true
,否则为false
。
将此 HeadingPitchRoll 与提供的 HeadingPitchRoll 组件进行比较,并返回
true
如果它们通过了绝对或相对耐受性测试,
否则 false
。
Name | Type | Default | Description |
---|---|---|---|
right |
HeadingPitchRoll | optional 右边 HeadingPitchRoll. | |
relativeEpsilon |
number |
0
|
optional 用于相等性检验的相对容差。 |
absoluteEpsilon |
number |
relativeEpsilon
|
optional 用于相等性检验的绝对公差。 |
Returns:
true
如果它们在提供的epsilon内,否则 false
。
创建一个字符串,表示此 HeadingPitchRoll,格式为 '(heading, pitch, roll)',以弧度为单位。
Returns:
一个字符串,表示提供的 HeadingPitchRoll,格式为 '(heading, pitch, roll)'。