Пример #1
0
        public GridTile(ITile tile)
        {
            if (tile is Tile t)
            {
                this.tile = t;
            }
            else
            {
                this.tile = new Tile(tile);
            }

            lowerLeft  = PointD.FromWorldLocation(new WorldLocation(this.tile.X, this.tile.Z, -1024, 0, -1024));
            upperLeft  = PointD.FromWorldLocation(new WorldLocation(this.tile.X, this.tile.Z, -1024, 0, 1024));
            lowerRight = PointD.FromWorldLocation(new WorldLocation(this.tile.X, this.tile.Z, 1024, 0, -1024));
            upperRight = PointD.FromWorldLocation(new WorldLocation(this.tile.X, this.tile.Z, 1024, 0, 1024));
            location   = lowerLeft;
        }