Init

Initializes a new instance of the IPosition80.

 

JavaScript

 

Init(

       X,

       Y,

       Altitude,

       Yaw,

       Pitch,

       Roll,

       AltitudeType,

       Distance)

 

C#

 

void Init(

       double X = 0,

       double Y = 0,

       double Altitude = 0,

       double Yaw = 0,

       double Pitch = 0,

       double Roll = 0,

       AltitudeTypeCode AltitudeType = AltitudeTypeCode.ATC_TERRAIN_RELATIVE,

       double Distance = 0)

 

C++

 

HRESULT Init(

       double X,

       double Y,

       double Altitude,

       double Yaw,

       double Pitch,

       double Roll,

       AltitudeTypeCode AltitudeType,

       double Distance)

 

Parameters

X

The x- coordinate in coordinate system units.

Y

The y-coordinate in coordinate system units.

Altitude

The altitude.

Yaw

The direction angle.

Pitch

The tilt angle.

Roll

The spin angle

AltitudeType

An enum determining how the altitude is interpreted. The following are the possible values:

§   ATC_TERRAIN_RELATIVE = 0
Places the object’s pivot point at a specified altitude above the ground.

§   ATC_PIVOT_RELATIVE = 1
Places each point of the object at a specified altitude above the pivot point altitude, defined by its Point Altitude. The pivot is located at the center of the object.

§   ATC_ON_TERRAIN = 2
Creates the object on the terrain itself.

§   ATC_TERRAIN_ABSOLUTE = 3
Places the object’s pivot point at a specified altitude above the terrain database vertical datum base ellipsoid.

§   ATC_3DML_RELATIVE = 4
Places the object's pivot point at a specified altitude above the 3DML layer.

Note:    ATC_PIVOT_RELATIVE and ATC_ON_TERRAIN values apply only for 2D shapes and polygons. ATC_3DML_RELATIVE only applies to image and text labels.

 

Distance

The distance to the camera once the camera comes to a stop.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.