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

Function PointToInt64Obsolete

libs/coding/point_coding.cpp:100–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98// Obsolete functions ------------------------------------------------------------------------------
99
100int64_t PointToInt64Obsolete(double x, double y, uint8_t coordBits)
101{
102 int64_t const res = static_cast<int64_t>(PointUToUint64Obsolete(PointDToPointU(x, y, coordBits)));
103
104 ASSERT_GREATER_OR_EQUAL(res, 0, ("Highest bits of (ix, iy) are not used, so res should be > 0."));
105 ASSERT_LESS_OR_EQUAL(static_cast<uint64_t>(res), uint64_t{3} << 2 * kPointCoordBits, ());
106 return res;
107}
108
109int64_t PointToInt64Obsolete(m2::PointD const & pt, uint8_t coordBits)
110{

Callers 8

InitMethod · 0.85
ProcessFeatureMethod · 0.85
GetKeyMethod · 0.85
operator()Method · 0.85
RunMethod · 0.85
RectToInt64ObsoleteFunction · 0.85
UNIT_TESTFunction · 0.85
operator()Method · 0.85

Calls 2

PointUToUint64ObsoleteFunction · 0.85
PointDToPointUFunction · 0.85

Tested by 1

UNIT_TESTFunction · 0.68