GM_Utility .CalcProjectedLocation Method |
Calculates the location of a new point projected from a start point along
a given bearing.
Namespace:GlobalMapper
Assembly: GlobalMapperWrapperNET (in GlobalMapperWrapperNET.dll) Version: 18.0.0.0 (18.0.0.0)

C#
Copy
public static GM_Error_t32 CalcProjectedLocation(
double aFromX,
double aFromY,
double aBearing,
double aDist,
out double aToX,
out double aToY,
bool aLatLon
)
Parameters
- aFromX
-
Type:
System
.
Double
IN: start X/longitude coordinate - aFromY
-
Type:
System
.
Double
IN: start Y/latitude coordinate - aBearing
-
Type:
System
.
Double
IN: bearing in degrees to project along (0 is north, 90 is east, 180 is south, 270 is west) - aDist
-
Type:
System
.
Double
IN: distance to project along bearing in meters - aToX
-
Type:
System
.
Double
OUT: stop X/longitude coordinate - aToY
-
Type:
System
.
Double
OUT: stop Y/latitude coordinate - aLatLon
-
Type:
System
.
Boolean
IN: TRUE - coordinates are lat/lon, FALSE - coordinates are in the current projection
Return Value
Type: GM_Error_t32A GM Error Code
