mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-23 20:53:39 +00:00
12 lines
273 B
C++
12 lines
273 B
C++
#include "../Platform/stdafx.h"
|
|
#include "Distort.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);
|
|
}
|