This commit is contained in:
cyberpwn
2021-11-12 21:27:03 -05:00
parent 676b35fb1c
commit def658ccc6
5 changed files with 37 additions and 32 deletions

View File

@@ -80,7 +80,7 @@ public class Position2 {
}
public double distance(Position2 center) {
return Math.sqrt(Math.pow(center.getX() - x, 2) + Math.pow(center.getZ() - z, 2));
return Math.pow(center.getX() - x, 2) + Math.pow(center.getZ() - z, 2);
}
public Position2 add(int x, int z) {