Lerp

From Onset Developer Wiki
Revision as of 20:22, 18 January 2020 by BlueMountains (talk | contribs) (Created page with "{{Info|Function|Client & Server|1.0.3}} {{FuncDescription|Interpolates between a and b with the parameter t. }} {{FuncSyntax|Lerp(t, a, b)}} {{FuncParameters}} {{FuncParam|...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Lerp

Type: Function
Context: Client & Server
Introduced: v1.0.3

Description

Interpolates between a and b with the parameter t.

Syntax

Lerp(t, a, b)

Parameters

  • t
    The interpolant, normally between 0.0 and 1.0
  • a
    Interpolate from.
  • b
    Interpolate to.

Return Value

  • Returns the interpolated value.

Example

--Will print 3.0
print(Lerp(0.5, 2.0, 4.0))

See also

__EDIT_ME__