CoordinateMove(Coordinate, Distance, Shape) Method
Move a coordinate a specified distance towards a target coordinate.
Namespace: CoordinateSharpAssembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
public void Move(
Coordinate target,
Distance distance,
Shape shape
)
Parameters
- target Coordinate
- Target coordinate
- distance Distance
- Distance toward target
- shape Shape
- Shape of earth
The following example moves a coordinate 10km towards a target coordinate using
ellipsoidal earth calculations.
//N 25º 0' 0" E 25º 0' 0"
Coordinate coord = Coordinate(25,25);
//Target Coordinate
Coordinate target = new Coordinate(26.5, 23.2);
Distance distance = new Distance(10, DistanceType.Kilometers);
//Move coordinate the specified distance
//towards target using ellipsoidal calculations
coord.Move(target, distance, Shape.Ellipsoid);
//New Coordinate - N 24º 56' 21.526" E 25º 4' 23.944"