diff options
author | vng <viktor.govako@gmail.com> | 2011-09-17 00:04:38 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:23:58 +0300 |
commit | 2872bfbffbc79ac4ad920362eaed5731171dcc08 (patch) | |
tree | 522fc3b255804abb4bd0112b8edb54ed12b7db6e /indexer/coding_params.cpp | |
parent | 3e2ecdc1447f63f2f5f376370a60bd2bd7e21840 (diff) |
[Reduce mwm size] Store first point once in header for outer linear features.
Diffstat (limited to 'indexer/coding_params.cpp')
-rw-r--r-- | indexer/coding_params.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/indexer/coding_params.cpp b/indexer/coding_params.cpp index 985513e492..9165779695 100644 --- a/indexer/coding_params.cpp +++ b/indexer/coding_params.cpp @@ -15,8 +15,7 @@ namespace serial CodingParams::CodingParams(uint8_t coordBits, m2::PointD const & pt) : m_CoordBits(coordBits) { - m_BasePoint = PointD2PointU(pt.x, pt.y, coordBits); - m_BasePointUint64 = m2::PointUToUint64(m_BasePoint); + SetBasePoint(pt); } CodingParams::CodingParams(uint8_t coordBits, uint64_t basePointUint64) @@ -24,4 +23,10 @@ namespace serial { m_BasePoint = m2::Uint64ToPointU(m_BasePointUint64); } + + void CodingParams::SetBasePoint(m2::PointD const & pt) + { + m_BasePoint = PointD2PointU(pt.x, pt.y, m_CoordBits); + m_BasePointUint64 = m2::PointUToUint64(m_BasePoint); + } } |