コード例 #1
0
ファイル: World.cs プロジェクト: rickpowell1311/Civ4
        public static (Boundary Left, Boundary Right) BisectVertically(this Boundary boundary)
        {
            var halfWidth = (boundary.Width) / 2;

            return(boundary.CutVertically(boundary.MinX + halfWidth));
        }
コード例 #2
0
ファイル: World.cs プロジェクト: rickpowell1311/Civ4
        public static (Boundary Top, Boundary Bottom) BisectHorizontally(this Boundary boundary)
        {
            var halfHeight = (boundary.Height) / 2;

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