Click or drag to resize

CoordinateMove Method (Distance, Double, Shape)

Move coordinate based on provided bearing and distance (in meters).

Namespace:  CoordinateSharp
Assembly:  CoordinateSharp (in CoordinateSharp.dll) Version:
The following example moves a coordinate 10km in the direction of the specified bearing using ellipsoidal earth calculations.
//N 25º 0' 0" E 25º 0' 0"
Coordinate c = Coordinate(25,25);

Distance distance = new Distance(10, DistanceType.Kilometers);
double bearing = 25;

//Move coordinate the specified distance
//and direction using ellipsoidal calculations
c.Move(distance, bearing, Shape.Ellipsoid);

//New Coordinate - N 25º 4' 54.517" E 24º 57' 29.189"
See Also