Poprawki w logowaniu. Zmiana nazw stałych: DL_MK -> SS_SIZE.
This commit is contained in:
@@ -109,16 +109,16 @@ public class Coord {
|
||||
public static double distance(Grid a, Grid b) {
|
||||
int dx = a.x - b.x;
|
||||
int dy = a.y - b.y;
|
||||
return Math.sqrt(dx * dx + dy * dy) * MapConsts.DL_MK;
|
||||
return Math.sqrt(dx * dx + dy * dy) * MapConsts.SS_SIZE;
|
||||
}
|
||||
|
||||
public static double distance(int x1, int y1, int x2, int y2) {
|
||||
int dx = x2 - x1;
|
||||
int dy = y2 - y1;
|
||||
return Math.sqrt(dx * dx + dy * dy) * MapConsts.DL_MK;
|
||||
return Math.sqrt(dx * dx + dy * dy) * MapConsts.SS_SIZE;
|
||||
}
|
||||
|
||||
private static final float DL_MK2 = MapConsts.DL_MK * 0.0009765625f;
|
||||
private static final float DL_MK2 = MapConsts.SS_SIZE * 0.0009765625f;
|
||||
|
||||
/**
|
||||
* Funkcja zwraca aproksymowaną odległość między środkami małych kwadratów [m].
|
||||
|
||||
Reference in New Issue
Block a user