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

Method flipVertically

Source/Utils/SimplexIslands.hpp:196–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194 }
195
196 void flipVertically(std::vector<std::vector<float>>& pNoise) {
197 std::vector<std::vector<float>> tempMap = pNoise;
198
199 for (size_t x = 0; x < pNoise.size(); x++) {
200 for (size_t y = 0; y < pNoise[x].size(); y++) {
201 tempMap[x][y] = pNoise[x][pNoise[x].size() - y - 1];
202 }
203 }
204
205 pNoise = tempMap;
206 }
207
208 void createEdgeMask(std::vector<std::vector<float>>& pNoise, float pEdgeFade) {
209

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected