(position-new
col
row)
col,row).
(position-col
pos)
pos.
(position-row
pos)
(position?
value)
value is a position (or can
be interpreted as such).
(position-offset
position
hoff
voff)
position
horizontally by hoff and vertically
by voff.
(position-distance
pos1
pos2)
pos1 and
pos2.
(position-interpolate
pos1
pos2
percent)
percent
(expressed as a real number between 0 and 1) of the way from
pos1 to pos2(random-positions
n
cols
rows)
n positions, each of which is
difficult to predict and each with a non-negative column less
than cols and a non-negative row less
than rows.
Copyright © 2007-2014 Janet Davis, Matthew Kluber, Samuel A. Rebelsky, and Jerod Weinman. (Selected materials copyright by John David Stone and Henry Walker and used by permission.)
This material is based upon work partially supported by the National Science Foundation under Grant No. CCLI-0633090. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.
This work is licensed under a
Creative Commons Attribution-NonCommercial 3.0 Unported License
.