MathUtilMoveAhead Method | |
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Given a starting position, a movement direction (as a bearing) and a distance, calculate
the end position.
Namespace:
Telogis.GeoBase
Assembly:
geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax public static LatLon MoveAhead(
LatLon start,
double bearing,
double distance,
DistanceUnit units
)
Public Shared Function MoveAhead (
start As LatLon,
bearing As Double,
distance As Double,
units As DistanceUnit
) As LatLon
Parameters
- start
- Type: Telogis.GeoBaseLatLon
The starting position, as a LatLon. - bearing
- Type: SystemDouble
The bearing on which to move, in degrees. - distance
- Type: SystemDouble
The distance to move, measured in units. - units
- Type: Telogis.GeoBaseDistanceUnit
The units in which distance is measured. See DistanceUnit.
Return Value
Type:
LatLonEither:
- The position distance away from start on a bearing of bearing degrees, as LatLon
- start, if start is an invalid LatLon (default value, or value not assigned).
See Also