Lerp

Category: Math

Back to System Functions


Signature

Lerp(startValue As Double, endValue As Double, amount As Double)

Returns

Double

Description

Linearly interpolates between the start and end values using the given amount.

Example

position = Lerp(startX, endX, 0.5)