| 161 | } |
| 162 | |
| 163 | int GetTileScaleBase(ScreenBase const & s, uint32_t tileSize) |
| 164 | { |
| 165 | ScreenBase tmpS = s; |
| 166 | tmpS.Rotate(-tmpS.GetAngle()); |
| 167 | |
| 168 | auto const halfSize = tileSize / 2; |
| 169 | |
| 170 | m2::RectD glbRect; |
| 171 | m2::PointD const pxCenter = tmpS.PixelRect().Center(); |
| 172 | tmpS.PtoG(m2::RectD(pxCenter - m2::PointD(halfSize, halfSize), pxCenter + m2::PointD(halfSize, halfSize)), glbRect); |
| 173 | |
| 174 | return GetTileScaleBase(glbRect); |
| 175 | } |
| 176 | |
| 177 | int GetTileScaleBase(ScreenBase const & s) |
| 178 | { |
no test coverage detected