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

Function CoordSize

libs/coding/point_coding.cpp:13–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11namespace
12{
13double CoordSize(uint8_t coordBits)
14{
15 ASSERT(coordBits >= 1 && coordBits <= 32, (coordBits));
16 return static_cast<double>((uint64_t{1} << coordBits) - 1);
17}
18} // namespace
19
20uint32_t DoubleToUint32(double x, double min, double max, uint8_t coordBits)

Callers 3

DoubleToUint32Function · 0.85
Uint32ToDoubleFunction · 0.85
GetCoordBitsFunction · 0.85

Calls 1

ASSERTFunction · 0.85

Tested by

no test coverage detected