CoordinateMove(Coordinate, Double, Shape) Method

Move a coordinate a specified distance (in meters) towards a target coordinate.

Definition

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

Parameters

target  Coordinate
Target coordinate
distance  Double
Distance toward target in meters
shape  Shape
Shape of earth

Example

The following example moves a coordinate 10km towards a target coordinate using ellipsoidal earth calculations.
C#
//N 25º 0' 0" E 25º 0' 0"
Coordinate coord = Coordinate(25,25);

//Target Coordinate
Coordinate target = new Coordinate(26.5, 23.2);

double meters = 10000;

//Move coordinate the specified meters
//towards target using ellipsoidal calculations
coord.Move(target, meters, Shape.Ellipsoid);

//New Coordinate - N 24º 56' 21.526" E 25º 4' 23.944"

See Also