Searched defs:yv (Results 1 - 1 of 1) sorted by relevance

/solaris-x11-s11/open-src/app/xlock/sun-src/
H A Dswarm.c73 short *yv; /* bee velocities xv[bee#] */ member in struct:__anon113
112 sp->yv = (short *) malloc(sizeof(short) * sp->beecount);
131 sp->yv[b] = RAND(7);
179 sp->yv[random() % sp->beecount] += RAND(3);
199 sp->yv[b] += (dy * BEEACC) / distance;
206 if (sp->yv[b] > BEEVEL)
207 sp->yv[b] = BEEVEL;
208 if (sp->yv[b] < -BEEVEL)
209 sp->yv[b] = -BEEVEL;
213 Y(0, b) = Y(1, b) + sp->yv[
[all...]

Completed in 10 milliseconds