Home > Working with SGWorld > CoordServices (ICoordServices6) > MoveCoordEx

MoveCoordEx

With this method you can define an orientation for a coordinate system and move a 3D-coordinate along it by a specified Forward-Backward, Right-Left and Up-Down offset. To define the point and orientation give the X and Y coordinates, altitude relative to the terrain database vertical datum base ellipsoid (absolute height), Yaw Pitch and Roll values, in the IPosition6 properties. To define the movement, give the forward, right and up values in moveForward, moveRight and moveUp respectively. Use negative values to move in the opposite direction (e.g., negative value for moveForward performs a backward movement).

 

JavaScript

 

MoveCoordEx(Position, moveForward, moveRight, moveUp)

 

C#

 

void MoveCoordEx(

      ref IPosition6    Position,

      double      moveForward,

      double      moveRight,

      double      moveUp)

 

C++

 

HRESULT MoveCoordEx(

       IPosition6 **    Position,

       double     moveForward,

       double     moveRight,

       double     moveUp )

Parameters

Position

An IPosition6 representing the 3D coordinate being moved.

moveForward

The offset to move the point forward. Positive values move the forward, negative values move backwards.

moveRight

The offset to move the point to the right and left. Positive values move the point to the right, negative values move the point to the left.

moveUp 

The offset to move the point up and down. Positive values move the point up, negative values move the point down.

Exceptions

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