| 11 | namespace |
| 12 | { |
| 13 | double 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 | |
| 20 | uint32_t DoubleToUint32(double x, double min, double max, uint8_t coordBits) |
no test coverage detected