Add manhattan method for having one block.

This commit is contained in:
asofold 2014-02-16 19:25:12 +01:00
parent 5c29859e8b
commit 3f78497fde

View File

@ -382,6 +382,18 @@ public class TrigUtil {
return yawDiff;
}
/**
* Manhattan distance.
* @param x1
* @param y1
* @param z1
* @param block
* @return
*/
public static int manhattan(final int x1, final int y1, final int z1, final Block block) {
return manhattan(x1, y1, z1, block.getX(), block.getY(), block.getZ());
}
/**
* Manhattan distance (steps along the sides of an orthogonal grid).
* @param x1