Primary: [Front Door] [Syllabus] [Assignments] [Labs] [Readings]
References: [A-Z] [Primary] [Scheme Report (R5RS)] [Scheme Reference]
Related Courses: [CSC151 2007S (Rebelsky)] [CSC151 2008S (Davis)] | [CSC151 2008F (Davis)] [CSC151 2008F (Weinman)] | [CSC151 2009S (Davis)] [CSC151 2009S (Weinman)]
(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.
Primary: [Front Door] [Syllabus] [Assignments] [Labs] [Readings]
References: [A-Z] [Primary] [Scheme Report (R5RS)] [Scheme Reference]
Related Courses: [CSC151 2007S (Rebelsky)] [CSC151 2008S (Davis)] | [CSC151 2008F (Davis)] [CSC151 2008F (Weinman)] | [CSC151 2009S (Davis)] [CSC151 2009S (Weinman)]
Copyright (c) 2007-2009 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 2.5 License. To view a copy of this
license, visit http://creativecommons.org/licenses/by-nc/2.5/
or send a letter to Creative Commons, 543 Howard Street, 5th Floor,
San Francisco, California, 94105, USA.