Home > All Other Interfaces > IPosition > Lerp

Lerp

Moves a coordinate a given percentage toward another coordinate.

 

JavaScript

 

Lerp(

      Position,

      Percentage)

 

C#

 

IPosition6 Lerp(

      IPosition6 Position,

      double Percentage)

 

C++

 

HRESULT Lerp(

      IPosition6* Position,

      double Percentage,

      IPosition6** pVal)

 

Parameters

Position

An IPosition6 representing the coordinate towards which the selected coordinate is being moved.

Persentage

The percentage to move.

Return Value

pVal

An IPosition6 representing the new position after the move, defined by its coordinates in the  3D world.

Exceptions

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