clamp-coords ( coords dim -- coords' )


Vocabulary
terrain

Inputs and outputs
coordsan object
diman object
coords'an object


Definition


: clamp-coords ( coords dim -- coords' )
{ 0 0 } swap { 2 2 } v- vclamp ;