runelite-api/src/main/java/net/runelite/api/coords/WorldArea.java
/**
	 * Get the shortest distance to another WorldArea
	 *
	 * @param other The other area
	 * @return Returns the distance
	 */
Get the shortest distance to another WorldArea
@param other The other area
@return Returns the distance
Get the shortest distance to another WorldArea @param other The other area @return Returns the distance
public int distanceTo(WorldArea other)
	{
		if (this.getPlane() != other.getPlane())
		{
			return Integer.MAX_VALUE;
		}
		Point distances = getAxisDistances(other);
		return Math.max(distances.getX(), distances.getY());
	}
public int distanceTo ( WorldArea other ) { if ( this . getPlane ( ) != other . getPlane ( ) ) { return Integer . MAX_VALUE ; } Point distances = getAxisDistances ( other ) ; return Math . max ( distances . getX ( ) , distances . getY ( ) ) ; }
Get the shortest distance to another WorldArea
 @param other The other area
 @return Returns the distance
Get the shortest distance to another WorldArea @param other The other area @return Returns the distance