]>
git.cameronkatri.com Git - bsdgames-darwin.git/blob - hack/hack.track.c
1 /* $NetBSD: hack.track.c,v 1.4 1997/10/19 16:59:11 christos Exp $ */
4 * Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
9 __RCSID("$NetBSD: hack.track.c,v 1.4 1997/10/19 16:59:11 christos Exp $");
35 utrack
[utpnt
].x
= u
.ux
;
36 utrack
[utpnt
].y
= u
.uy
;
47 for (i
= utpnt
- 1; cnt
--; i
--) {
51 dist
= (x
- tc
.x
) * (x
- tc
.x
) + (y
- tc
.y
) * (y
- tc
.y
);
53 return (dist
? &(utrack
[i
]) : 0);