English中文

HeadingPitchRoll

new Cesium.HeadingPitchRoll(heading, pitch, roll)

旋转表示为航向、俯仰和横滚。航向是绕负 z 轴的旋转。俯仰角是绕负 y 轴的旋转。滚动是绕正 x 轴的旋转。 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.
名称 Name 类型 Type 默认值 Default 说明 Description
heading number 0.0 可选 optional 以弧度表示的标题部分。 The heading component in radians.
pitch number 0.0 可选 optional 以弧度表示的螺距分量。 The pitch component in radians.
roll number 0.0 可选 optional 以弧度表示的滚动分量。 The roll component in radians.

成员 Members

获取或设置标题。 Gets or sets the heading.
默认值: Default Value: 0.0
获取或设置音高。 Gets or sets the pitch.
默认值: Default Value: 0.0
获取或设置卷。 Gets or sets the roll.
默认值: Default Value: 0.0

方法 Methods

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

复制 HeadingPitchRoll 实例。 Duplicates a HeadingPitchRoll instance.
名称 Name 类型 Type 说明 Description
headingPitchRoll HeadingPitchRoll 要复制的 HeadingPitchRoll。 The HeadingPitchRoll to duplicate.
result HeadingPitchRoll 可选 optional 用于存储结果的对象。 The object onto which to store the result.
返回: Returns:
修改后的结果参数或新的 HeadingPitchRoll 实例(如果未提供)。 (如果 HeadingPitchRoll 未定义,则返回未定义) 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

比较提供的 HeadingPitchRolls 组件并返回 Compares the provided HeadingPitchRolls componentwise and returns true 如果它们相等, if they are equal, false otherwise.
名称 Name 类型 Type 说明 Description
left HeadingPitchRoll 可选 optional 第一个 HeadingPitchRoll。 The first HeadingPitchRoll.
right HeadingPitchRoll 可选 optional 第二个 HeadingPitchRoll。 The second HeadingPitchRoll.
返回: Returns:
true 如果左和右相等, if left and right are equal, false otherwise.

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

比较提供的 HeadingPitchRolls 组件并返回 Compares the provided HeadingPitchRolls componentwise and returns true 如果他们通过了绝对或相对耐受性测试, if they pass an absolute or relative tolerance test, false otherwise.
名称 Name 类型 Type 默认值 Default 说明 Description
left HeadingPitchRoll 可选 optional 第一个 HeadingPitchRoll。 The first HeadingPitchRoll.
right HeadingPitchRoll 可选 optional 第二个 HeadingPitchRoll。 The second HeadingPitchRoll.
relativeEpsilon number 0 可选 optional 用于相等性测试的相对 epsilon 容差。 The relative epsilon tolerance to use for equality testing.
absoluteEpsilon number relativeEpsilon 可选 optional 用于相等性测试的绝对 epsilon 容差。 The absolute epsilon tolerance to use for equality testing.
返回: Returns:
true 如果 left 和 right 在提供的 epsilon 范围内, if left and right are within the provided epsilon, false otherwise.

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

从以度为单位的角度返回一个新的 HeadingPitchRoll 实例。 Returns a new HeadingPitchRoll instance from angles given in degrees.
名称 Name 类型 Type 说明 Description
heading number 以度为单位的标题 the heading in degrees
pitch number 音高(以度为单位) the pitch in degrees
roll number 以度为单位的标题 the heading in degrees
result HeadingPitchRoll 可选 optional 用于存储结果的对象。如果未提供,则会创建并返回一个新实例。 The object in which to store the result. If not provided, a new instance is created and returned.
返回: Returns:
一个新的 HeadingPitchRoll 实例 A new HeadingPitchRoll instance

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

从四元数计算航向、俯仰和横滚(参见 http://en.wikipedia.org/wiki/Conversion_ Between_quaternions_and_Euler_angles ) 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 用于检索航向、俯仰和横滚的四元数,全部以弧度表示。 The quaternion from which to retrieve heading, pitch, and roll, all expressed in radians.
result HeadingPitchRoll 可选 optional 用于存储结果的对象。如果未提供,则会创建并返回一个新实例。 The object in which to store the result. If not provided, a new instance is created and returned.
返回: Returns:
修改后的结果参数或新的 HeadingPitchRoll 实例(如果未提供)。 The modified result parameter or a new HeadingPitchRoll instance if one was not provided.
复制此 HeadingPitchRoll 实例。 Duplicates this HeadingPitchRoll instance.
名称 Name 类型 Type 说明 Description
result HeadingPitchRoll 可选 optional 用于存储结果的对象。 The object onto which to store the result.
返回: Returns:
修改后的结果参数或新的 HeadingPitchRoll 实例(如果未提供)。 The modified result parameter or a new HeadingPitchRoll instance if one was not provided.

equals(right)boolean

将此 HeadingPitchRoll 与提供的 HeadingPitchRoll 组件进行比较并返回 Compares this HeadingPitchRoll against the provided HeadingPitchRoll componentwise and returns true 如果它们相等, if they are equal, false otherwise.
名称 Name 类型 Type 说明 Description
right HeadingPitchRoll 可选 optional 右侧 HeadingPitchRoll。 The right hand side HeadingPitchRoll.
返回: Returns:
true 如果它们相等, if they are equal, false otherwise.

equalsEpsilon(right, relativeEpsilon, absoluteEpsilon)boolean

将此 HeadingPitchRoll 与提供的 HeadingPitchRoll 组件进行比较并返回 Compares this HeadingPitchRoll against the provided HeadingPitchRoll componentwise and returns true 如果他们通过了绝对或相对耐受性测试, if they pass an absolute or relative tolerance test, false otherwise.
名称 Name 类型 Type 默认值 Default 说明 Description
right HeadingPitchRoll 可选 optional 右侧 HeadingPitchRoll。 The right hand side HeadingPitchRoll.
relativeEpsilon number 0 可选 optional 用于相等性测试的相对 epsilon 容差。 The relative epsilon tolerance to use for equality testing.
absoluteEpsilon number relativeEpsilon 可选 optional 用于相等性测试的绝对 epsilon 容差。 The absolute epsilon tolerance to use for equality testing.
返回: Returns:
true 如果它们在提供的 epsilon 范围内, if they are within the provided epsilon, false otherwise.
创建一个表示此 HeadingPitchRoll 的字符串,格式为“(标题、俯仰、滚动)”(以弧度表示)。 Creates a string representing this HeadingPitchRoll in the format '(heading, pitch, roll)' in radians.
返回: Returns:
表示所提供的 HeadingPitchRoll 的字符串,格式为“(标题、俯仰、滚动)”。 A string representing the provided HeadingPitchRoll in the format '(heading, pitch, roll)'.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.