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

Method Set

testbed/common/PerlinNoise.cpp:21–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21void PerlinNoise::Set(double _persistence, double _frequency, double _amplitude, int _octaves, int _randomseed)
22{
23 persistence = _persistence;
24 frequency = _frequency;
25 amplitude = _amplitude;
26 octaves = _octaves;
27 randomseed = 2 + _randomseed * _randomseed;
28}
29
30double PerlinNoise::GetHeight(double x, double y) const
31{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected