mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-26 18:49:06 +00:00
fix util method no need for xz
This commit is contained in:
@@ -619,20 +619,20 @@ public class IrisInterpolation
|
||||
//@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 accessX = new AtomicDouble();
|
||||
AtomicDouble accessZ = new AtomicDouble();
|
||||
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())
|
||||
{
|
||||
rad.set(d);
|
||||
}
|
||||
return 0;
|
||||
};
|
||||
getNoise(method, x, z, h, np);
|
||||
getNoise(method, 0, 0, h, np);
|
||||
return rad.get();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user