MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / cDiamondSquare

Method cDiamondSquare

Source/Utils/diamondsquare.hpp:120–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118public:
119
120 cDiamondSquare(const uint power2, const long seed) :
121 power2(power2),
122 systemSize((uint) pow(2.0, power2) + 1),
123 R(std::vector<std::vector<double> >(systemSize, std::vector<double>(systemSize))),
124 rnd(new Random(-std::abs(seed)))
125 { }
126
127 /*!
128 \brief generate The method used to generate a heightmap. Returns a reference to a member vector<vector<double>> "matrix".

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected