Beispiel #1
0
        public static (Boundary Left, Boundary Right) BisectVertically(this Boundary boundary)
        {
            var halfWidth = (boundary.Width) / 2;

            return(boundary.CutVertically(boundary.MinX + halfWidth));
        }
Beispiel #2
0
        public static (Boundary Top, Boundary Bottom) BisectHorizontally(this Boundary boundary)
        {
            var halfHeight = (boundary.Height) / 2;

            return(boundary.CutHorizontally(boundary.MinY + halfHeight));
        }