| 55 | } |
| 56 | |
| 57 | m2::PointU PointDToPointU(double x, double y, uint8_t coordBits) |
| 58 | { |
| 59 | using mercator::Bounds; |
| 60 | return {DoubleToUint32(x, Bounds::kMinX, Bounds::kMaxX, coordBits), |
| 61 | DoubleToUint32(y, Bounds::kMinY, Bounds::kMaxY, coordBits)}; |
| 62 | } |
| 63 | |
| 64 | m2::PointU PointDToPointU(m2::PointD const & pt, uint8_t coordBits) |
| 65 | { |