This method returns the camera’s position and orientation.
JavaScript |
|
GetPosition( AltitudeType) |
C# |
|
IPosition61 GetPosition( AltitudeTypeCode AltitudeType = AltitudeTypeCode.ATC_TERRAIN_RELATIVE) |
C++ |
|
HRESULT GetPosition( AltitudeTypeCode AltitudeType, IPosition61 ** pVal) |
Parameters
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_TERRAIN_ABSOLUTE = 3
Places the object’s pivot point at a specified altitude above the terrain database vertical datum base ellipsoid.
Return Value
pVal
An IPosition61 representing the position of the camera, defined by its coordinates in the 3D world.
Exceptions
See: HRESULT Return Values for a list of possible values returned by the HRESULT.