new Cesium.HeadingPitchRoll(heading, pitch, roll)

旋转表示为方向,投球,和滚. 标题是旋转 负 Z 轴 。 Pitch是阴性Y轴的旋转. 旋转就是旋转 阳性 x 轴.
Name Type Default Description
heading number 0.0 optional 弧度中的标题元件.
pitch number 0.0 optional 弧度中的投球成分.
roll number 0.0 optional 弧度的卷轴组件.

Members

heading : number

获得或设置标题.
Default Value: 0.0

pitch : number

得到或设置投球.
Default Value: 0.0

roll : number

得到或设置卷.
Default Value: 0.0

Methods

static Cesium.HeadingPitchRoll.clone(headingPitchRoll, result)HeadingPitchRoll

复制一个标题 Pitch Roll 实例 .
Name Type Description
headingPitchRoll HeadingPitchRoll 头牌螺旋桨要复制.
result HeadingPitchRoll optional 存储结果的对象 .
Returns:
The modified result parameter or a new HeadingPitchRoll instance if one was not provided. (Returns undefined if headingPitchRoll is undefined)

static Cesium.HeadingPitchRoll.equals(left, right)boolean

比较所提供的标题PitchRolls组件并返回 -NT+0+Treal NT+1+,如果两者是相等的, NT+2+false NT+3+否则.
Name Type Description
left HeadingPitchRoll optional 首座头皮奇罗尔.
right HeadingPitchRoll optional 第二头皮奇罗尔.
Returns:
如果左右对等, 则使用 NT 0 true NT 1 , 否则使用 NT 2 false NT 3 .

static Cesium.HeadingPitchRoll.equalsEpsilon(left, right, relativeEpsilon, absoluteEpsilon)boolean

比较所提供的标题PitchRolls组件并返回 如果通过绝对或相对耐性测试, -NT+0+false NT+1+否则.
Name Type Default Description
left HeadingPitchRoll optional 首座头皮奇罗尔.
right HeadingPitchRoll optional 第二头皮奇罗尔.
relativeEpsilon number 0 optional The relative epsilon tolerance to use for equality testing.
absoluteEpsilon number 相对Epsilon optional 绝对的埃皮西隆耐受性用于平等测试.
Returns:
NT################################################################### ##########################################################################################################################################################################################.

static Cesium.HeadingPitchRoll.fromDegrees(heading, pitch, roll, result)HeadingPitchRoll

从角度返回一个新的标题PitchRoll实例, 角度以度为单位 .
Name Type Description
heading number 以度为单位的标题
pitch number 以度计的投球
roll number 以度为单位的标题
result HeadingPitchRoll optional 存储结果的对象 。 如果不提供,则创建并返回新的实例.
Returns:
一个新的标题Pitch Roll 实例

static Cesium.HeadingPitchRoll.fromQuaternion(quaternion, result)HeadingPitchRoll

Computes the heading, pitch and roll from a quaternion (see http://en.wikipedia.org/wiki/Conversion_between_quaternions_and_Euler_angles )
Name Type Description
quaternion Quaternion 取回方向、投球和滚子的四角线,都用弧度表示.
result HeadingPitchRoll optional 存储结果的对象 。 如果不提供,则创建并返回新的实例.
Returns:
未提供修改的结果参数或新的标题PitchRoll实例 .

clone(result)HeadingPitchRoll

重复这个标题Pitch Roll的例子.
Name Type Description
result HeadingPitchRoll optional 存储结果的对象 .
Returns:
未提供修改的结果参数或新的标题PitchRoll实例 .

equals(right)boolean

将标题PitchRoll与所提供的标题PitchRoll组件进行比较,然后返回 -NT+0+Treal NT+1+,如果两者是相等的, NT+2+false NT+3+否则.
Name Type Description
right HeadingPitchRoll optional 右手边头皮奇罗尔.
Returns:
-NT+0+Treal NT+1+,如果两者是相等的, NT+2+false NT+3+否则.

equalsEpsilon(right, relativeEpsilon, absoluteEpsilon)boolean

将标题PitchRoll与所提供的标题PitchRoll组件进行比较,然后返回 如果通过绝对或相对耐性测试, -NT+0+false NT+1+否则.
Name Type Default Description
right HeadingPitchRoll optional 右手边头皮奇罗尔.
relativeEpsilon number 0 optional The relative epsilon tolerance to use for equality testing.
absoluteEpsilon number 相对Epsilon optional 绝对的埃皮西隆耐受性用于平等测试.
Returns:
NT##############################################################################################################################################################################################################################################################.

toString()string

创建一个字符串,以弧度格式“(标题、投球、卷)”代表这个标题.
Returns:
一个字符串,以“(标题、投球、卷)”的形式代表所提供的标题Pitch Roll.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.