Initializes a new instance of the IPosition61.
JavaScript |
|
Init( X = 0, Y = 0, Altitude = 0, Yaw = 0, Pitch = 0, Roll = 0, AltitudeType = AltitudeTypeCode.ATC_TERRAIN_RELATIVE, Distance = 0) |
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++ |
|
|
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 AltitudeTypeCode 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.
Note: ATC_PIVOT_RELATIVE and ATC_ON_TERRAIN values apply only for 2D shapes and polygons.
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.