clamp-coords ( coords dim -- coords' )


Vocabulary
terrain

Inputs
coordsan object
diman object


Outputs
coords'an object


Definition


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