Skip to content

Api > Vector4 > LerpUnclamped()


Vector4.LerpUnclamped(Vector4 a, Vector4 b, number t)⚓︎

Linearly interpolates between two vectors.

Parameters:⚓︎

Name Type Description
a Vector4 a
b Vector4 b
t number t

Returns:⚓︎

type Description
Vector4 Interpolates between a and b by amount t.

Usage⚓︎

---@type Vector4
local a;

---@type Vector4
local b;

---@type number
local t;


local val0 = Vector4:LerpUnclamped(a, b, t)

Extra Detail⚓︎

Interpolates between a and b by amount t.
When t = 0 returns a.
When t = 1 returns b.
When t = 0.5 returns the midpoint of a and b.