globalmapper.ConvertCoordGroundToPixelWithOrientationDouble¶
- globalmapper.ConvertCoordGroundToPixelWithOrientationDouble(float aGroundX, float aGroundY, GM_Rectangle_t aWorldBounds, GM_PixelRect_t aPixelRect, float aOrientation) GM_Error_t32, float, float [source]¶
Convert a coordinate between the current projection and pixel space. The conversion space can be either the last drawn coordinate space or the caller can provide the coordinate space to work in. You also supply an orientation angle to perform the conversion with.
The results will be returned as floats. To get sint32’s instead, use the function ConvertCoordGroundToPixelWithOrientation.
Note: The only time that you should need to call this function is if you want to do a coordinate conversion in a different orientation than what has been set globally with SetOrientation.
- Parameters
aGroundX (float) – X Coord in current projection
aGroundY (float) – Y Coord in current projection
aWorldBounds (GM_Rectangle_t) – World bounds to convert from or None for last drawn
aPixelRect (GM_PixelRect_t) – Pixel bounds to convert from or None for last drawn
aOrientation (float) – IN Orientation of coordinate space to use (0 is north up, 90 is east up, 180 is south up, 270 is west up)
- Returns
Error Code
- Return type
GM_Error_t32
- Returns
X Coord in pixel space
- Return type
float
- Returns
Y Coord in pixel space
- Return type
float