public static (Boundary Left, Boundary Right) BisectVertically(this Boundary boundary) { var halfWidth = (boundary.Width) / 2; return(boundary.CutVertically(boundary.MinX + halfWidth)); }
public static (Boundary Top, Boundary Bottom) BisectHorizontally(this Boundary boundary) { var halfHeight = (boundary.Height) / 2; return(boundary.CutHorizontally(boundary.MinY + halfHeight)); }