Skip to main content

Quaternion.Lerp(Quaternion a, Quaternion b, number t)

Interpolates between a and b by t and normalizes the result afterwards. The parameter t is clamped to the range [0, 1].

Parameters:

NameTypeDescription
aQuaterniona
bQuaternionb
tnumbert

Returns:

typeDescription
Quaternionresult

Usage

---@type Quaternion
local a;

---@type Quaternion
local b;

---@type number
local t;


local val0 = Quaternion:Lerp(a, b, t)