MCPcopy Create free account
hub / github.com/comaps/comaps / Int64ToPointObsolete

Function Int64ToPointObsolete

libs/coding/point_coding.cpp:114–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114m2::PointD Int64ToPointObsolete(int64_t v, uint8_t coordBits)
115{
116 ASSERT_GREATER_OR_EQUAL(v, 0, ("Highest bits of (ix, iy) are not used, so res should be > 0."));
117 ASSERT_LESS_OR_EQUAL(static_cast<uint64_t>(v), uint64_t{3} << 2 * kPointCoordBits, ());
118 return PointUToPointD(Uint64ToPointUObsolete(static_cast<uint64_t>(v)), coordBits);
119}
120
121std::pair<int64_t, int64_t> RectToInt64Obsolete(m2::RectD const & r, uint8_t coordBits)
122{

Callers 4

ProcessRawEntriesMethod · 0.85
Int64ToRectObsoleteFunction · 0.85
UNIT_TESTFunction · 0.85
operator()Method · 0.85

Calls 2

PointUToPointDFunction · 0.85
Uint64ToPointUObsoleteFunction · 0.85

Tested by 1

UNIT_TESTFunction · 0.68