boids.simulation vocabulary
Factor handbook > Vocabulary index


Summary
boids.simulation vocabulary

Meta-data
Authors:Eduardo Cavazos, Anton Gorenko


Words

Tuple classes
ClassSuperclassSlots
alignment behaviour
behaviour tupleweight radius angle-cos
boid tuplepos vel
cohesion behaviour
separation behaviour


Generic words
WordStack effect
force( neighbors boid behaviour -- force )


Ordinary words
WordStack effect
(force)( boid boids behaviour -- force )
<alignment>( weight radius angle-cos -- alignment )
<boid>( pos vel -- boid )
<cohesion>( weight radius angle-cos -- cohesion )
<separation>( weight radius angle-cos -- separation )
angle-between( u v -- angle )
height( -- value )
in-radius?( self other radius -- ? )
in-view?( self other angle-cos -- ? )
neighbors( boid boids behaviour -- neighbors )
random-boids( count -- boids )
relative-angle( self other -- angle )
relative-position( self other -- v )
simulate( boids behaviours dt -- boids )
vavg( vecs -- v )
vsum( vecs -- v )
width( -- value )
within-neighborhood?( self other behaviour -- ? )
wrap-pos( pos -- pos )


Class predicate words
WordStack effect
alignment?( object -- ? )
behaviour?( object -- ? )
boid?( object -- ? )
cohesion?( object -- ? )
separation?( object -- ? )


Files