HeadingPitchRoll

new Cesium.HeadingPitchRoll(heading, pitch, roll)

A rotation expressed as a heading, pitch, and roll. Heading is the rotation about the negative z axis. Pitch is the rotation about the negative y axis. Roll is the rotation about the positive x axis.
参数名称 类型 默认值 描述信息
heading number 0.0 可选 The heading component in radians.
pitch number 0.0 可选 The pitch component in radians.
roll number 0.0 可选 The roll component in radians.

成员(属性)

Gets or sets the heading.
默认值: 0.0
Gets or sets the pitch.
默认值: 0.0
Gets or sets the roll.
默认值: 0.0

方法

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

Duplicates a HeadingPitchRoll instance.
参数名称 类型 描述信息
headingPitchRoll HeadingPitchRoll The HeadingPitchRoll to duplicate.
result HeadingPitchRoll 可选 The object onto which to store the result.
返回值:
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

Compares the provided HeadingPitchRolls componentwise and returns true if they are equal, false otherwise.
参数名称 类型 描述信息
left HeadingPitchRoll 可选 The first HeadingPitchRoll.
right HeadingPitchRoll 可选 The second HeadingPitchRoll.
返回值:
true if left and right are equal, false otherwise.

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

Compares the provided HeadingPitchRolls componentwise and returns true if they pass an absolute or relative tolerance test, false otherwise.
参数名称 类型 默认值 描述信息
left HeadingPitchRoll 可选 The first HeadingPitchRoll.
right HeadingPitchRoll 可选 The second HeadingPitchRoll.
relativeEpsilon number 0 可选 The relative epsilon tolerance to use for equality testing.
absoluteEpsilon number relativeEpsilon 可选 The absolute epsilon tolerance to use for equality testing.
返回值:
true if left and right are within the provided epsilon, false otherwise.

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

Returns a new HeadingPitchRoll instance from angles given in degrees.
参数名称 类型 描述信息
heading number the heading in degrees
pitch number the pitch in degrees
roll number the heading in degrees
result HeadingPitchRoll 可选 The object in which to store the result. If not provided, a new instance is created and returned.
返回值:
A new HeadingPitchRoll instance

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 )
参数名称 类型 描述信息
quaternion Quaternion The quaternion from which to retrieve heading, pitch, and roll, all expressed in radians.
result HeadingPitchRoll 可选 The object in which to store the result. If not provided, a new instance is created and returned.
返回值:
The modified result parameter or a new HeadingPitchRoll instance if one was not provided.
Duplicates this HeadingPitchRoll instance.
参数名称 类型 描述信息
result HeadingPitchRoll 可选 The object onto which to store the result.
返回值:
The modified result parameter or a new HeadingPitchRoll instance if one was not provided.

equals(right)boolean

Compares this HeadingPitchRoll against the provided HeadingPitchRoll componentwise and returns true if they are equal, false otherwise.
参数名称 类型 描述信息
right HeadingPitchRoll 可选 The right hand side HeadingPitchRoll.
返回值:
true if they are equal, false otherwise.

equalsEpsilon(right, relativeEpsilon, absoluteEpsilon)boolean

Compares this HeadingPitchRoll against the provided HeadingPitchRoll componentwise and returns true if they pass an absolute or relative tolerance test, false otherwise.
参数名称 类型 默认值 描述信息
right HeadingPitchRoll 可选 The right hand side HeadingPitchRoll.
relativeEpsilon number 0 可选 The relative epsilon tolerance to use for equality testing.
absoluteEpsilon number relativeEpsilon 可选 The absolute epsilon tolerance to use for equality testing.
返回值:
true if they are within the provided epsilon, false otherwise.
Creates a string representing this HeadingPitchRoll in the format '(heading, pitch, roll)' in radians.
返回值:
A string representing the provided HeadingPitchRoll in the format '(heading, pitch, roll)'.