Skip to content

raylib.Vector3CubicHermite

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Calculate cubic hermite interpolation between two vectors and their tangents as described in the GLTF 2.0 specification: https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#interpolation-cubic

Parameters

Parameter Default Value Note
v1 [0, 0, 0]
tangent1 [0, 0, 0]
v2 [0, 0, 0]
tangent2 [0, 0, 0]
amount 0

Return value

Condition Return Value
(always) list

Notes

Example

v1 = [0, 0, 0]
tg1 = [1, 0, 0]
v2 = [1, 0, 0]
tg2 = [1, 0, 0]
result = raylib.Vector3CubicHermite(v1, tg1, v2, tg2, 0.5)
print result  // interpolated position at t=0.5

Clone this wiki locally