openrndr
0.4.5-dev.2+46aea0f
common
openrndr-shape
/
org.openrndr.shape
/
clamp
clamp
fun
Vector2
.
clamp
(
bounds
:
Rectangle
)
:
Vector2
(
source
)
Clamps a
Vector2
within the bounds of the
bounds
Rectangle
.