MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / Noise

Method Noise

testbed/common/PerlinNoise.cpp:105–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105double PerlinNoise::Noise(int x, int y) const
106{
107 int n = x + y * 57;
108 n = (n << 13) ^ n;
109 int t = (n * (n * n * 15731 + 789221) + 1376312589) & 0x7fffffff;
110 return 1.0 - double(t) * 0.931322574615478515625e-9;/// 1073741824.0);
111}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected