diff options
author | vng <viktor.govako@gmail.com> | 2013-10-07 20:21:30 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:03:26 +0300 |
commit | d8fb9adaecf0093a3a70f90bfed4f113ab2a148b (patch) | |
tree | f1c4f6b84aaa569ccffd7976925558b2339d08a6 /indexer/geometry_coding.hpp | |
parent | 13803d58396500ba2110ba0f92237f0df996774a (diff) |
Added some comments.
Diffstat (limited to 'indexer/geometry_coding.hpp')
-rw-r--r-- | indexer/geometry_coding.hpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/indexer/geometry_coding.hpp b/indexer/geometry_coding.hpp index 5b3b94aef9..57be2dc774 100644 --- a/indexer/geometry_coding.hpp +++ b/indexer/geometry_coding.hpp @@ -12,8 +12,8 @@ inline uint64_t EncodeDelta(m2::PointU const & actual, m2::PointU const & prediction) { return bits::BitwiseMerge( - bits::ZigZagEncode(static_cast<int32_t>(actual.x) - static_cast<int32_t>(prediction.x)), - bits::ZigZagEncode(static_cast<int32_t>(actual.y) - static_cast<int32_t>(prediction.y))); + bits::ZigZagEncode(static_cast<int32_t>(actual.x) - static_cast<int32_t>(prediction.x)), + bits::ZigZagEncode(static_cast<int32_t>(actual.y) - static_cast<int32_t>(prediction.y))); } inline m2::PointU DecodeDelta(uint64_t delta, m2::PointU const & prediction) @@ -25,18 +25,19 @@ inline m2::PointU DecodeDelta(uint64_t delta, m2::PointU const & prediction) //@} -/// Predict point p0 given previous (p1, p2). +/// Predict next point for polyline with given previous points (p1, p2). m2::PointU PredictPointInPolyline(m2::PointU const & maxPoint, m2::PointU const & p1, m2::PointU const & p2); -/// Predict point p0 given previous (p1, p2, p3). +/// Predict next point for polyline with given previous points (p1, p2, p3). m2::PointU PredictPointInPolyline(m2::PointU const & maxPoint, m2::PointU const & p1, m2::PointU const & p2, m2::PointU const & p3); -/// Predict point p0 given previous (p1, p2, p3). +/// Predict point for neighbour triangle with given +/// previous triangle (p1, p2, p3) and common edge (p1, p2). m2::PointU PredictPointInTriangle(m2::PointU const & maxPoint, m2::PointU const & p1, m2::PointU const & p2, |