public static WorldPoint getMirrorPoint(WorldPoint worldPoint, boolean toOverworld)
	{
		int region = worldPoint.getRegionID();
		for (int i = 0; i < REGION_MIRRORS.length; i += 2)
		{
			int real = REGION_MIRRORS[i];
			int overworld = REGION_MIRRORS[i + 1];

			// Test against what we are converting from
			if (region == (toOverworld ? real : overworld))
			{
				return fromRegion(toOverworld ? overworld : real,
					worldPoint.getRegionX(), worldPoint.getRegionY(), worldPoint.getPlane());
			}
		}
		return worldPoint;
	}
@Test
	public void getGetMirrorPoint()
	{
		WorldPoint point, converted;

		// Zalcano's entrance portal
		point = new WorldPoint(3282, 6058, 0);
		converted = WorldPoint.getMirrorPoint(point, true);
		assertNotEquals(point, converted);

		// Elven Crystal Chest, which is upstairs
		point = new WorldPoint(3273, 6082, 2);
		converted = WorldPoint.getMirrorPoint(point, true);
		assertNotEquals(point, converted);

		// Around the area of the Elite coordinate clue
		point = new WorldPoint(2185, 3280, 0);
		// To overworld
		converted = WorldPoint.getMirrorPoint(point, true);
		assertEquals(point, converted);
		// To real
		converted = WorldPoint.getMirrorPoint(point, false);
		assertNotEquals(point, converted);

		// Brugsen Bursen, Grand Exchange
		point = new WorldPoint(3165, 3477, 0);
		converted = WorldPoint.getMirrorPoint(point, false);
		assertEquals(point, converted);
	}