Home > Working with SGWorld > Navigate (INavigate6) > GetPosition
This method returns the camera’s position and orientation.
JavaScript |
|
GetPosition( AltitudeType) |
C# |
|
IPosition6 GetPosition( AltitudeTypeCode AltitudeType = AltitudeTypeCode.ATC_TERRAIN_RELATIVE) |
C++ |
|
HRESULT GetPosition( AltitudeTypeCode AltitudeType, IPosition6 ** 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.
§ ATC_DEFAULT = 999
Return Value
pVal
An IPosition6 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.