openrndr
0.4.5-dev.4.uncommitted+98ebace
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
.