Handbook
Glossary
clamp-coords ( coords dim -- coords' )
Vocabulary
terrain
Inputs
coords
an
object
dim
an
object
Outputs
coords'
an
object
Definition
USING:
kernel
math.vectors
;
IN:
terrain
:
clamp-coords
( coords dim -- coords' )
{
0 0
}
swap
{
2 2
}
v-
vclamp
;