moveToward Method

Moves a coordinate the given distance toward another coordinate.

moveToward(coord, distance);

 

Parameter

Description

coord

Can be Can be  SGCoord2D, SGCoord3D or SGPosition

distance

The distance to move

Return Value

An SGPosition that represents the new position after the move.