CoordinateMove(Distance, Double, Shape) Method

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

Definition

Namespace: CoordinateSharp
Assembly: CoordinateSharp (in CoordinateSharp.dll) Version: 2.21.1.1
XMLNS for XAML: Not mapped to an xmlns.
C#
public void Move(
	Distance distance,
	double bearing,
	Shape shape
)

Parameters

distance  Distance
Distance
bearing  Double
Bearing
shape  Shape
Shape of earth

Example

The following example moves a coordinate 10km in the direction of the specified bearing using ellipsoidal earth calculations.
C#
//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