Skip to content

raylib.Vector3Clamp

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Clamp the components of the vector between min and max values specified by the given vectors

Parameters

Parameter Default Value Note
v [0, 0, 0]
min [-1, -1, -1]
max [1, 1, 1]

Return value

Condition Return Value
(always) list

Notes

Example

v = [5, -2, 3]
minV = [0, 0, 0]
maxV = [4, 4, 4]
result = raylib.Vector3Clamp(v, minV, maxV)
print result  // [4, 0, 3]

Clone this wiki locally