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

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

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