public Rectangle getPositionRelativeToTile ( Tile tile ) { Point upperLeft = MercatorProjection . getPixelRelativeToTile ( new LatLong ( this . maxLatitude , minLongitude ) , tile ) ; Point lowerRight = MercatorProjection . getPixelRelativeToTile ( new LatLong ( this . minLatitude , maxLongitude ) , tile ) ; return new Rectangle ( upperLeft . x , upperLeft . y , lowerRight . x , lowerRight . y ) ; }
Computes the coordinates of this bounding box relative to a tile .