globalmapper.CalcProjectedLocation

globalmapper.CalcProjectedLocation(float aFromX, float aFromY, float aBearing, float aDist, bool aLatLon) GM_Error_t32, float, float[source]

Calculates the location of a new point projected from a start point along a given bearing. The input and output points can either be specified as lat/lon values or in the current projection.

Parameters:
  • aFromX (float) – start X/longitude coordinate

  • aFromY (float) – start Y/latitude coordinate

  • aBearing (float) – bearing in degrees to project along (0 is north, 90 is east, 180 is south, 270 is west)

  • aDist (float) – distance to project along bearing in meters

  • aLatLon (bool) – TRUE - coordinates are lat/lon, FALSE - coordinates are in the current projection

Returns:

Error Code

Return type:

GM_Error_t32

Returns:

Stop X/longitude coordinate

Return type:

float

Returns:

Stop Y/latitude coordinate

Return type:

float