flatland vocabulary
Factor handbook > Vocabulary index


Summary
flatland vocabulary

Words

Tuple classes
ClassSuperclassSlots
<extent> tupleleft right bottom top
<pos> tuplepos
<rectangle> <pos>dim
<vel> <pos>vel


Ordinary words
WordStack effect
(height!)( height obj -- )
(width!)( width obj -- )
(x!)( x obj -- )
(y!)( y obj -- )
above?( obj obj -- ? )
below?( obj obj -- ? )
bottom( obj -- bottom )
bottom-left( rectangle -- pos )
center( rectangle -- seq )
center-x( rectangle -- x )
center-y( rectangle -- y )
changed-x( seq quot -- )
changed-y( seq quot -- )
distance( a b -- c )
height( obj -- height )
height!( obj height -- obj )
horizontal-interval( obj -- interval )
in-between-horizontally?( obj obj -- ? )
left( obj -- left )
move-by( obj delta -- )
move-for( vel time -- )
move-left-by( obj obj -- )
move-right-by( obj obj -- )
move-to( obj obj -- )
moving-down?( obj -- ? )
moving-up?( obj -- ? )
reverse-horizontal-velocity( vel -- )
right( obj -- right )
step-size( vel time -- dist )
to-the-left-of?( obj obj -- ? )
to-the-right-of?( obj obj -- ? )
top( obj -- top )
width( obj -- width )
width!( obj width -- obj )
within?( a b -- ? )
wrap( POINT RECT -- POINT )
x( obj -- x )
x!( obj x -- obj )
y( obj -- y )
y!( obj y -- obj )


Class predicate words
WordStack effect
<extent>?( object -- ? )
<pos>?( object -- ? )
<rectangle>?( object -- ? )
<vel>?( object -- ? )


Files