Parents: | boids |
Authors: | Eduardo Cavazos, Anton Gorenko |
Class | Superclass | Slots |
alignment | behavior | |
behavior | tuple | weight radius angle-cos |
boid | tuple | pos vel |
cohesion | behavior | |
separation | behavior |
Word | Stack effect |
force | ( neighbors boid behavior -- force ) |
Word | Stack effect |
(force) | ( boid boids behavior -- force ) |
<alignment> | ( weight radius angle-cos -- alignment ) |
<boid> | ( pos vel -- boid ) |
<cohesion> | ( weight radius angle-cos -- cohesion ) |
<separation> | ( weight radius angle-cos -- separation ) |
HEIGHT | ( -- value ) |
WIDTH | ( -- value ) |
angle-between | ( u v -- angle ) |
in-radius? | ( self other radius -- ? ) |
in-view? | ( self other angle-cos -- ? ) |
neighbors | ( boid boids behavior -- neighbors ) |
random-boids | ( count -- boids ) |
relative-angle | ( self other -- angle ) |
relative-position | ( self other -- v ) |
simulate | ( boids behaviors dt -- boids ) |
vavg | ( vecs -- v ) |
vsum | ( vecs -- v ) |
within-neighborhood? | ( self other behavior -- ? ) |
wrap-pos | ( pos -- pos ) |
Word | Stack effect |
alignment? | ( object -- ? ) |
behavior? | ( object -- ? ) |
boid? | ( object -- ? ) |
cohesion? | ( object -- ? ) |
separation? | ( object -- ? ) |