4jcraft/targets/minecraft/world/level/levelgen/synth/Distort.cpp

13 lines
298 B
C++

#include "Distort.h"
#include "minecraft/world/level/levelgen/synth/Synth.h"
Distort::Distort(Synth* source, Synth* distort) {
this->source = source;
this->distort = distort;
}
double Distort::getValue(double x, double y) {
return source->getValue(x + distort->getValue(x, y), y);
}