| 73 | } |
| 74 | |
| 75 | m2::PointD PointUToPointD(m2::PointU const & pt, uint8_t coordBits) |
| 76 | { |
| 77 | using mercator::Bounds; |
| 78 | return {Uint32ToDouble(pt.x, Bounds::kMinX, Bounds::kMaxX, coordBits), |
| 79 | Uint32ToDouble(pt.y, Bounds::kMinY, Bounds::kMaxY, coordBits)}; |
| 80 | } |
| 81 | |
| 82 | m2::PointD PointUToPointD(m2::PointU const & pt, uint8_t coordBits, m2::RectD const & limitRect) |
| 83 | { |