From b691c43c44ff180d10e7d4a9afc83b98551ff586 Mon Sep 17 00:00:00 2001 From: daoge_cmd <3523206925@qq.com> Date: Sun, 1 Mar 2026 12:16:08 +0800 Subject: Initial commit --- Minecraft.World/Scale.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Minecraft.World/Scale.cpp (limited to 'Minecraft.World/Scale.cpp') 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); +} -- cgit v1.2.3