Handbook
Glossary
wrap-pos ( pos -- pos )
Vocabulary
boids
.
simulation
Inputs
pos
an
object
Outputs
pos
an
object
Definition
USING:
arrays
kernel
math
sequences
;
IN:
boids.simulation
:
wrap-pos
( pos -- pos )
WIDTH
HEIGHT
2array
[
[
+
]
keep
mod
]
2map
;