LerpVector

From Onset Developer Wiki
Revision as of 18:07, 7 February 2020 by BlueMountains (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
LerpVector

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

Description

Interpolates between vector A and vector B with the parameter t.

Syntax

LerpVector(t, aX, aY, aZ, bX, bY, bZ)

Parameters

  • t
    The interpolant, normally between 0.0 and 1.0
  • aX
    Interpolate from X.
  • aY
    Interpolate from Y.
  • aZ
    Interpolate from Z.
  • bX
    Interpolate to X.
  • bY
    Interpolate to Y.
  • bZ
    Interpolate to Z.

Return Value

  • Returns the interpolated vector (3 floats).

Example

print(LerpVector(0.5, 2.0, 4.0, 1.0, 4.0, 5.0, 2.0))

See also