aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/Scale.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/Scale.cpp')
-rw-r--r--Minecraft.World/Scale.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/Minecraft.World/Scale.cpp b/Minecraft.World/Scale.cpp
new file mode 100644
index 00000000..f73c2634
--- /dev/null
+++ b/Minecraft.World/Scale.cpp
@@ -0,0 +1,14 @@
+#include "stdafx.h"
+#include "Scale.h"
+
+Scale::Scale(Synth *synth, double xScale, double yScale)
+{
+ this->synth = synth;
+ this->xScale = 1.0 / xScale;
+ this->yScale = 1.0 / yScale;
+}
+
+double Scale::getValue(double x, double y)
+{
+ return synth->getValue(x * xScale, y * yScale);
+}