4jcraft/targets/minecraft/world/level/levelgen/synth/Synth.cpp
2026-04-01 13:27:58 -05:00

12 lines
319 B
C++

#include "Synth.h"
std::vector<double> Synth::create(int width, int height) {
std::vector<double> result = std::vector<double>(width * height);
for (int y = 0; y < height; y++) {
for (int x = 0; x < width; x++) {
result[x + y * width] = getValue(x, y);
}
}
return result;
}