@JsType(isNative=true, namespace="Cesium", name="HeadingPitchRoll") public class HeadingPitchRoll extends Object
Modifier and Type | Field and Description |
---|---|
double |
heading |
double |
pitch |
double |
roll |
Constructor and Description |
---|
HeadingPitchRoll()
A rotation expressed as a heading, pitch, and roll.
|
HeadingPitchRoll(double heading,
double pitch)
A rotation expressed as a heading, pitch, and roll.
|
HeadingPitchRoll(double heading,
double pitch,
double roll)
A rotation expressed as a heading, pitch, and roll.
|
Modifier and Type | Method and Description |
---|---|
HeadingPitchRoll |
clone()
The object onto which to store the result.
|
static HeadingPitchRoll |
clone(HeadingPitchRoll headingPitchRoll)
Duplicates a HeadingPitchRoll instance.
|
static HeadingPitchRoll |
clone(HeadingPitchRoll headingPitchRoll,
HeadingPitchRoll result)
Duplicates a HeadingPitchRoll instance.
|
boolean |
equals(HeadingPitchRoll right)
Compares this HeadingPitchRoll against the provided HeadingPitchRoll componentwise and returns true if they are equal, false otherwise.
|
static boolean |
equals(HeadingPitchRoll left,
HeadingPitchRoll right)
Compares the provided HeadingPitchRolls componentwise and returns true if they are equal, false otherwise.
|
boolean |
equalsEpsilon(HeadingPitchRoll right,
double relativeEpsilon,
double absoluteEpsilon)
Compares this HeadingPitchRoll against the provided HeadingPitchRoll componentwise and returns true if
they pass an absolute or relative tolerance test, false otherwise.
|
static boolean |
equalsEpsilon(HeadingPitchRoll left,
HeadingPitchRoll right,
double relativeEpsilon,
double absoluteEpsilon)
Compares the provided HeadingPitchRolls componentwise and returns true if they pass an absolute or relative tolerance test, false otherwise.
|
static HeadingPitchRoll |
fromDegrees(double heading,
double pitch,
double roll)
Returns a new HeadingPitchRoll instance from angles given in degrees.
|
static HeadingPitchRoll |
fromDegrees(double heading,
double pitch,
double roll,
HeadingPitchRoll result)
Returns a new HeadingPitchRoll instance from angles given in degrees.
|
static HeadingPitchRoll |
fromQuaternion(Quaternion quaternion)
Computes the heading, pitch and roll from a quaternion (see http://en.wikipedia.org/wiki/Conversion_between_quaternions_and_Euler_angles )
|
static HeadingPitchRoll |
fromQuaternion(Quaternion quaternion,
Quaternion result)
Computes the heading, pitch and roll from a quaternion (see http://en.wikipedia.org/wiki/Conversion_between_quaternions_and_Euler_angles )
|
String |
toString()
Creates a string representing this HeadingPitchRoll in the format '(heading, pitch, roll)' in radians.
|
@JsProperty public double heading
@JsProperty public double pitch
@JsProperty public double roll
@JsConstructor public HeadingPitchRoll()
@JsConstructor public HeadingPitchRoll(double heading, double pitch)
heading
- The heading component in radians. Default: 0.0pitch
- The pitch component in radians. Default: 0.0@JsConstructor public HeadingPitchRoll(double heading, double pitch, double roll)
heading
- The heading component in radians. Default: 0.0pitch
- The pitch component in radians. Default: 0.0roll
- The roll component in radians. Default: 0.0@JsMethod public static HeadingPitchRoll clone(HeadingPitchRoll headingPitchRoll)
headingPitchRoll
- The HeadingPitchRoll to duplicate.@JsMethod public static HeadingPitchRoll clone(HeadingPitchRoll headingPitchRoll, HeadingPitchRoll result)
headingPitchRoll
- The HeadingPitchRoll to duplicate.result
- The object onto which to store the result.@JsMethod public static boolean equals(HeadingPitchRoll left, HeadingPitchRoll right)
left
- The first HeadingPitchRoll.right
- The second HeadingPitchRoll.@JsMethod public static boolean equalsEpsilon(HeadingPitchRoll left, HeadingPitchRoll right, double relativeEpsilon, double absoluteEpsilon)
left
- The first HeadingPitchRoll.right
- The second HeadingPitchRoll.relativeEpsilon
- The relative epsilon tolerance to use for equality testing.absoluteEpsilon
- The absolute epsilon tolerance to use for equality testing.@JsMethod public static HeadingPitchRoll fromDegrees(double heading, double pitch, double roll)
heading
- the heading in degreespitch
- the pitch in degreesroll
- the heading in degrees@JsMethod public static HeadingPitchRoll fromDegrees(double heading, double pitch, double roll, HeadingPitchRoll result)
heading
- the heading in degreespitch
- the pitch in degreesroll
- the heading in degreesresult
- The object in which to store the result. If not provided, a new instance is created and returned.@JsMethod public static HeadingPitchRoll fromQuaternion(Quaternion quaternion)
quaternion
- The quaternion from which to retrieve heading, pitch, and roll, all expressed in radians.@JsMethod public static HeadingPitchRoll fromQuaternion(Quaternion quaternion, Quaternion result)
quaternion
- The quaternion from which to retrieve heading, pitch, and roll, all expressed in radians.result
- The object in which to store the result. If not provided, a new instance is created and returned.@JsMethod public HeadingPitchRoll clone()
@JsMethod public boolean equals(HeadingPitchRoll right)
right
- The right hand side HeadingPitchRoll.@JsMethod public boolean equalsEpsilon(HeadingPitchRoll right, double relativeEpsilon, double absoluteEpsilon)
right
- The right hand side HeadingPitchRoll.relativeEpsilon
- The relative epsilon tolerance to use for equality testing.absoluteEpsilon
- The absolute epsilon tolerance to use for equality testing.Copyright © 2019. All rights reserved.