MoveCoord

This method moves a 2D-coordinate by a specified west-east and south-north offset. The X and Y coordinates to be converted should be given in X and Y respectively. After the method is completed, the pVal returns the new coordinates. This method can be used, for example, to calculate the coordinates for drawing a square on a globe database.

 

JavaScript

 

MoveCoord(

       X,

       Y,

       moveWestEast,

       moveSouthNorth)

 

C#

 

ICoord2D MoveCoord(

       double        X,

       double        Y,

       double        moveWestEast,

       double        moveSouthNorth)

 

C++

 

HRESULT MoveCoord(

       double        X,

       double        Y,

       double        moveWestEast,

       double        moveSouthNorth,

       ICoord2D **  pVal )

 

Parameters

X

X-coordinate in coordinate system units.

Y

Y-coordinate in coordinate system units.

moveWestEast

The offset to move the point on the west-east axis. Positive values move the coordinate to the east, negative values move to the west.

moveSouthNorth

The offset to move the point on the south-north axis. Positive values move the coordinate to the north, negative values move to the south.

Return Value

pVal

An ICoord2D representing the new coordinates.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.