be more consistent with coordinates

This commit is contained in:
nhmall
2022-07-02 09:10:03 -04:00
parent 0bd5b3d39e
commit 3004cf2d34
74 changed files with 831 additions and 746 deletions

View File

@@ -681,9 +681,9 @@ rounddiv(long x, int y)
/* distance between two points, in moves */
int
distmin(int x0, int y0, int x1, int y1)
distmin(coordxy x0, coordxy y0, coordxy x1, coordxy y1)
{
register int dx = x0 - x1, dy = y0 - y1;
coordxy dx = x0 - x1, dy = y0 - y1;
if (dx < 0)
dx = -dx;
@@ -697,9 +697,9 @@ distmin(int x0, int y0, int x1, int y1)
/* square of euclidean distance between pair of pts */
int
dist2(int x0, int y0, int x1, int y1)
dist2(coordxy x0, coordxy y0, coordxy x1, coordxy y1)
{
register int dx = x0 - x1, dy = y0 - y1;
coordxy dx = x0 - x1, dy = y0 - y1;
return dx * dx + dy * dy;
}