CoordinateMove(Double, Double, Shape) Method
Move coordinate based on provided bearing and distance (in meters).
Namespace: CoordinateSharpAssembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
public void Move(
double distance,
double bearing,
Shape shape
)
Parameters
- distance Double
- Distance in meters
- bearing Double
- Bearing
- shape Shape
- Shape of earth
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"