1 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
2 /* hack.track.c - version 1.0.2 */
19 if(utcnt < UTSZ) utcnt++;
20 if(utpnt == UTSZ) utpnt = 0;
21 utrack[utpnt].x = u.ux;
22 utrack[utpnt].y = u.uy;
27 gettrack(x,y) int x,y; {
31 for(i = utpnt-1; cnt--; i--){
32 if(i == -1) i = UTSZ-1;
34 dist = (x-tc.x)*(x-tc.x) + (y-tc.y)*(y-tc.y);
36 return(dist ? &(utrack[i]) : 0);