Exemplo n.º 1
0
        /*
         * def getMetaSize (self, z):
         * if not self.metaTile: return (1,1)
         * maxcol, maxrow = self.grid(z)
         * return ( min(self.metaSize[0], int(maxcol + 1)),
         * min(self.metaSize[1], int(maxrow + 1)) )
         */
        #endregion

        public override Size GetMetaSize(int z)
        {
            if (!MetaTile)
            {
                return(new Size(1, 1));
            }
            SizeD size = Grid(z);

            return(new Size
            {
                //TODO: Verify python-conversion...
                Width = Math.Min(MetaSize.Width, Convert.ToInt32(size.Width + 1)),
                Height = Math.Min(MetaSize.Height, Convert.ToInt32(size.Height + 1))
            });
        }
Exemplo n.º 2
0
 public static double _1(this SizeD self)
 {
     return(self.Height);
 }
Exemplo n.º 3
0
 public static double _0(this SizeD self)
 {
     return(self.Width);
 }