Defines a position object that includes a coordinate and a heading pitch and range for it. The following method is available:
§ create
create(Cartesian, HeadingPitchRange, AltitudeType) → TEposition
Creates a position object.
Parameters
Name |
Type |
Description |
Cartesian |
Cartesian position |
|
HeadingPitchRange |
Heading, pitch and range of the object. |
|
AltitudeType |
An object that determines the altitude method. It can be set to any of the following: § RELATIVE_TO_MODEL = 0 § RELATIVE_TO_TERRAIN = 1 § ABSOLUTE = 2 § ON_TERRAIN = 3 |
Returns
A TEPosition object.
Example
TerraExplorer.navigate.position.create({cartesian: Cesium.Cartesian3.fromDegrees(3, 20, 0), headingPitchRange: new Cesium.HeadingPitchRange(0, Cesium.Math.toRadians(-89), 1000), altitudeType: TerraExplorer.AltitudeMethod.RELATIVE_TO_MODEL});