position

Defines a position object that includes a coordinate and a heading pitch and range for it. The following method is available:

§  create()

create

create(Cartesian, HeadingPitchRange, AltitudeType) TEPosition

Creates a position object.

Parameters

Name

Type

Description

Cartesian

Cesium.Cartesian3

Cartesian position

HeadingPitchRange

Cesium.HeadingPitchRange

Heading, pitch and range of the object.

AltitudeType

AltitudeMethod

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

Cesium.when(TerraExplorer.navigate.position.create({cartesian: Cesium.Cartesian3.fromDegrees(-157.80553, 21.26110, 2500), headingPitchRange: new Cesium.HeadingPitchRange(0, Cesium.Math.toRadians(-89), 1000), altitudeType: TerraExplorer.AltitudeMethod.RELATIVE_TO_MODEL}),function(pos){

TerraExplorer.navigate.flyToPosition(pos);

});