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

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

Completed in 8 milliseconds