public static void calculateBiomeData(Tile tile, Point[] surrPoints) {
		Tile[] sTiles = Utils.surroundingPointsToTiles(surrPoints);		// Pattern produced by this method matches the encoding.
		for (int i = 0; i < sTiles.length; i++) {
			Tile sTile = sTiles[i];
			// Higher precedence tiles overlap the lower precedence ones, so we are only interested in higher precedence tiles surrounding the chosen tile.
			if (tile != null && sTile != null && 									// If both exist &...
				Tiles.getPrecedence(sTile.tile) > Tiles.getPrecedence(tile.tile) && // ...higher precedence &...
				sTile.tile != tile.tile) {											// ...different type.
				tile.borderFlagOne = setBit(tile.borderFlagOne, i, 1);		// "i" can be simply used here because the pattern produced by Utils is compatible.
			}
		}
	}