Skip to content

raylib.Vector3ClampValue

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Clamp the magnitude of the vector between two values

Parameters

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

Return value

Condition Return Value
(always) list

Notes

Example

v = [3, 4, 0]  // length 5
result = raylib.Vector3ClampValue(v, 0, 2)
print result  // scaled so magnitude is 2

Clone this wiki locally