/** * (non-Javadoc) * @see org.joml.Vector3ic#gridDistance(org.joml.Vector3ic) */ public long gridDistance(int x, int y, int z) { return Math.abs(x - x()) + Math.abs(y - y()) + Math.abs(z - z()); }
/** * (non-Javadoc) * @see org.joml.Vector3ic#gridDistance(org.joml.Vector3ic) */ public long gridDistance(int x, int y, int z) { return Math.abs(x - x()) + Math.abs(y - y()) + Math.abs(z - z()); }
/** * (non-Javadoc) * @see org.joml.Vector3ic#gridDistance(org.joml.Vector3ic) */ public long gridDistance(Vector3ic v) { return Math.abs(v.x() - x()) + Math.abs(v.y() - y()) + Math.abs(v.z() - z()); }
/** * (non-Javadoc) * @see org.joml.Vector3ic#gridDistance(org.joml.Vector3ic) */ public long gridDistance(Vector3ic v) { return Math.abs(v.x() - x()) + Math.abs(v.y() - y()) + Math.abs(v.z() - z()); }