MoveByOrientation
With this method you can move the IPosition80 object by a specified Forward-Backward, Right-Left and Up-Down offset, based on the set IPosition80 object’s properties (point and orientation, X and Y coordinates, altitude, Yaw Pitch and Roll values). The movement is defined by setting 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). This method replaces the deprecated ICoordServices80.MoveCoordEx method.
JavaScript |
|
MoveByOrientation( moveForward, moveRight, moveUp) |
C# |
|
IPosition80 MoveByOrientation ( double moveForward, double moveRight, double moveUp) |
C++ |
|
HRESULT MoveByOrientation ( double moveForward, double moveRight, double moveUp IPosition80** pVal) |
Parameters
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.
Return Value
Position
An IPosition80 representing the new position of the 3D coordinate being moved.
Exceptions
See: HRESULT Return Values for a list of possible values returned by the HRESULT.