mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-21 07:46:55 +00:00
1 parent
def658ccc6
commit
2d0df240f4
5 files changed
+32
-37
No files matched your search
@@ -80,7 +80,7 @@ public class Position2 {
|
||||
}
|
||||
|
||||
public double distance(Position2 center) {
|
||||
return Math.pow(center.getX() - x, 2) + Math.pow(center.getZ() - z, 2);
|
||||
return Math.sqrt(Math.pow(center.getX() - x, 2) + Math.pow(center.getZ() - z, 2));
|
||||
}
|
||||
|
||||
public Position2 add(int x, int z) {
|
||||
|
||||
Reference in new issue
Block a user