| 65 | } |
| 66 | |
| 67 | m2::PointU DecodePointDeltaFromUint(uint64_t delta, m2::PointU const & prediction) |
| 68 | { |
| 69 | uint32_t x, y; |
| 70 | bits::BitwiseSplit(delta, x, y); |
| 71 | return m2::PointU(prediction.x + bits::ZigZagDecode(x), prediction.y + bits::ZigZagDecode(y)); |
| 72 | } |
| 73 | |
| 74 | m2::PointU PredictPointInPolyline(m2::PointD const & maxPoint, m2::PointU const & p1, m2::PointU const & p2, |
| 75 | m2::PointU const & p3) |