lerp Method

Moves a coordinate a given percentage toward another coordinate.

lerp(coord, persentage);

 

Parameter

Description

coord

Can be SGCoord2D, SGCoord3D or SGPosition

percentage

The percentage segment to move (0.0 – 1.0)

Return Value

An SGPosition that represents the new position after the move.