Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 333 Bytes

lerp.md

File metadata and controls

12 lines (8 loc) · 333 Bytes

Back to reference

lerp(value1, value2, t)

Interpolates at a given percentage t between value1 and value2. 't' is usually a number between 0 and 1.

Example:

Interpolate half way between 2 and 5. The result in lerpedValue will be 3.5.

let lerpedValue = gmynd.lerp(2, 5, 0.5);