MCPcopy Create free account
hub / github.com/PDAL/PDAL / GridKey

Method GridKey

io/private/copcwriter/GridKey.hpp:49–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47{
48public:
49 GridKey(int i, int j, int k)
50 {
51 assert(i < (std::numeric_limits<uint8_t>::max)());
52 assert(j < (std::numeric_limits<uint8_t>::max)());
53 assert(k < (std::numeric_limits<uint8_t>::max)());
54 m_key = (i << (2 * CHAR_BIT)) | (j << CHAR_BIT) | k;
55 }
56
57 int i() const
58 { return (m_key >> (2 * CHAR_BIT)); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected