code: function (sector, matrixWidth, matrixHeight, tileWidth, tileHeight) {
              if (!sector) {
                  throw new ArgumentError(
                      Logger.logMessage(Logger.LEVEL_SEVERE, "TileMatrix", "constructor",
                          "missingSector"));
              }
  
              if (matrixWidth < 1) {
                  throw new ArgumentError(
                      Logger.logMessage(Logger.LEVEL_SEVERE, "TileMatrix", "constructor",
                          "invalidWidth"));
              }
  
              if (matrixHeight < 1) {
                  throw new ArgumentError(
                      Logger.logMessage(Logger.LEVEL_SEVERE, "TileMatrix", "constructor",
                          "invalidHeight"));
              }
  
              if (tileWidth < 1) {
                  throw new ArgumentError(
                      Logger.logMessage(Logger.LEVEL_SEVERE, "TileMatrix", "constructor",
                          "invalidWidth"));
              }
  
              if (tileHeight < 1) {
                  throw new ArgumentError(
                      Logger.logMessage(Logger.LEVEL_SEVERE, "TileMatrix", "constructor",
                          "invalidHeight"));
              }
  
              /**
               * The geographic coverage area of this TileMatrix.
               */
              this.sector = sector;
  
              /**
               * The number of pixels or points of tiles in the horizontal or x direction.
               */
              this.tileWidth = tileWidth;
  
              /**
               * The number of pixels or points of tiles in the vertical or y direction.
               */
              this.tileHeight = tileHeight;
  
              /**
               * The number of tiles in the horizontal or x direction.
               */
              this.matrixWidth = matrixWidth;
  
              /**
               * The number of tiles in the vertical or y direction.
               */
              this.matrixHeight = matrixHeight;
  
              /**
               * The resolution in degrees per pixel of this TileMatrix.
               * @type {number}
               */
              this.degreesPerPixel = this.sector.deltaLatitude() / (this.matrixHeight * this.tileHeight);
          }
docs: TileMatrix is a collection of tiles for a fixed resolution (degrees per pixel). It contains the dimensions of
  the tile in pixels and the dimension of the matrix in tiles.
  @param sector the geographic coverage of this TileMatrix
  @param matrixWidth the number of tiles in the x direction
  @param matrixHeight the number of tiles in the y direction
  @param tileWidth the number of pixels or points in the x direction
  @param tileHeight the number of pixels or points in the y direction
  @constructor