Back to Devexpress

GeoUtils.CalculateDestinationPoint(GeoPoint, Double, Double) Method

windowsforms-devexpress-dot-xtramap-dot-geoutils-dot-calculatedestinationpoint-x28-devexpress-dot-xtramap-dot-geopoint-system-dot-double-system-dot-double-x29.md

latest2.5 KB
Original Source

GeoUtils.CalculateDestinationPoint(GeoPoint, Double, Double) Method

Calculates a geographical point based on the specified start point, distance, and bearing.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
public static GeoPoint CalculateDestinationPoint(
    GeoPoint startPoint,
    double distance,
    double bearing
)
vb
Public Shared Function CalculateDestinationPoint(
    startPoint As GeoPoint,
    distance As Double,
    bearing As Double
) As GeoPoint

Parameters

NameTypeDescription
startPointGeoPoint

The starting geographical point.

| | distance | Double |

The distance in meters to the destination point measured along a geodesic line.

| | bearing | Double |

The bearing to the destination point, in degrees.

|

Returns

TypeDescription
GeoPoint

The destination geographical point.

|

Remarks

The following example calculates the destination geographical point:

csharp
GeoPoint startPoint = new GeoPoint(53.1914, 001.4347);
GeoPoint destinationPoint = GeoUtils.CalculateDestinationPoint(startPoint, 17910000, 276.0117);
vb
Dim startPoint As GeoPoint = New GeoPoint(53.1914, 001.4347)
Dim destinationPoint As GeoPoint = GeoUtils.CalculateDestinationPoint(startPoint, 17910000, 276.0117)

The distance is measured along a geodesic line. The image below shows this geodesic line:

See Also

GeoUtils Class

GeoUtils Members

DevExpress.XtraMap Namespace