-
Notifications
You must be signed in to change notification settings - Fork 2
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
| Parameter | Default Value | Note |
|---|---|---|
| v | [0, 0, 0] | |
| min | [-1, -1, -1] | |
| max | [1, 1, 1] |
| Condition | Return Value |
|---|---|
| (always) | list |
v = [5, -2, 3]
minV = [0, 0, 0]
maxV = [4, 4, 4]
result = raylib.Vector3Clamp(v, minV, maxV)
print result // [4, 0, 3]