Click or drag to resize

CoordinateMove Method (Double, Double, Shape)

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

Namespace:  CoordinateSharp
Assembly:  CoordinateSharp (in CoordinateSharp.dll) Version: 2.12.1.1
Syntax
C#
public void Move(
	double distance,
	double bearing,
	Shape shape
)

Parameters

distance
Type: SystemDouble
Distance in meters
bearing
Type: SystemDouble
Bearing
shape
Type: CoordinateSharpShape
Shape of earth
Examples
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);

double meters = 10000;
double bearing = 25;

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

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