MCPcopy Create free account
hub / github.com/CesiumGS/cesium-native / rotate

Function rotate

CesiumGeospatial/src/HilbertOrder.cpp:11–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace {
10
11void rotate(uint32_t n, uint32_t& x, uint32_t& y, bool rx, bool ry) {
12 if (ry) {
13 return;
14 }
15
16 if (rx) {
17 x = n - 1 - x;
18 y = n - 1 - y;
19 }
20
21 uint32_t t = x;
22 x = y;
23 y = t;
24}
25
26} // namespace
27

Callers 3

encode2DMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected