mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 02:36:59 +00:00
fix util method no need for xz
This commit is contained in:
parent
3274fb9615
commit
8fe21d6d05
@ -619,20 +619,20 @@ public class IrisInterpolation
|
|||||||
//@done
|
//@done
|
||||||
}
|
}
|
||||||
|
|
||||||
public static double getRealRadius(InterpolationMethod method, int x, int z, double h)
|
public static double getRealRadius(InterpolationMethod method, double h)
|
||||||
{
|
{
|
||||||
AtomicDouble rad = new AtomicDouble(h);
|
AtomicDouble rad = new AtomicDouble(h);
|
||||||
AtomicDouble accessX = new AtomicDouble();
|
AtomicDouble accessX = new AtomicDouble();
|
||||||
AtomicDouble accessZ = new AtomicDouble();
|
AtomicDouble accessZ = new AtomicDouble();
|
||||||
NoiseProvider np = (x1, z1) -> {
|
NoiseProvider np = (x1, z1) -> {
|
||||||
double d = Math.max(Math.abs(x1-x), Math.abs(z1 - z));
|
double d = Math.max(Math.abs(x1), Math.abs(z1));
|
||||||
if(d > rad.get())
|
if(d > rad.get())
|
||||||
{
|
{
|
||||||
rad.set(d);
|
rad.set(d);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
};
|
};
|
||||||
getNoise(method, x, z, h, np);
|
getNoise(method, 0, 0, h, np);
|
||||||
return rad.get();
|
return rad.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user