Searched refs:distance (Results 1 - 1 of 1) sorted by relevance

/solaris-x11-s11/open-src/app/xlock/sun-src/
H A Dswarm.c183 int distance, local
195 distance = abs(dx) + abs(dy); /* approximation */
196 if (distance == 0)
197 distance = 1;
198 sp->xv[b] += (dx * BEEACC) / distance;
199 sp->yv[b] += (dy * BEEACC) / distance;

Completed in 9 milliseconds