Slerp

Category: Math

Back to System Functions


Signature

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

Returns

Double

Description

Smoothly interpolates between the start and end values using cosine easing.

Example

position = Slerp(startX, endX, 0.5)