Skip to main content

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

Spherically interpolates between a and b by t. 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:Slerp(a, b, t)