Click or drag to resize

MathUtilMoveAhead Method

Verizon Connect Logo
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
)

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: LatLon
Either:
  • 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