MCPcopy Create free account
hub / github.com/crawl/crawl / permMod12

Function permMod12

crawl-ref/source/perlin.cc:98–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96 138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180};
97
98 static IMMUTABLE uint8_t permMod12(const uint32_t x)
99 {
100 return perm[x] % 12;
101 }
102
103 // Skewing and unskewing factors for 2, 3, and 4 dimensions
104 static const double F2 = 0.5 * (sqrt(3.0) - 1.0);

Callers 1

noiseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected