Global Mapper SDK
GM_3DGetCameraPosition
Retrieves the position of the camera in the current 3D view.
Syntax
C++
Copy
GM_DLL_EXPORTED GM_Error_t32 __stdcall GM_3DGetCameraPosition
(
double* aX, // OUT: X coordinate for camera in current view projection
double* aY, // OUT: Y coordinate for camera in current view projection
float* aElev, // OUT: Elevation in meters for camera
double* aHeading, // OUT: Heading in degrees from North (0)
double* aPitch, // OUT: Pitch in degrees (+ is up, - is down)
double* aBank // OUT: not currently used
);
Remarks
You can set the camera position using the GM_3DPositionCamera function.