public static PolarRegion GenerateSouthPole(Boundary boundary) { var(top, bottom) = boundary.CutHorizontally(boundary.MinY + FilledRows); var iceTiles = Landmass.Fill(bottom).LandTiles .Union(Landmass.Generate(top, top.Area / 4).LandTiles); return(new PolarRegion(iceTiles)); }
public static (Boundary Top, Boundary Bottom) BisectHorizontally(this Boundary boundary) { var halfHeight = (boundary.Height) / 2; return(boundary.CutHorizontally(boundary.MinY + halfHeight)); }