Class GaussianKernel
java.lang.Object
com.sk89q.worldedit.math.convolution.Kernel
com.sk89q.worldedit.math.convolution.GaussianKernel
A Gaussian Kernel generator (2D bellcurve).
-
Constructor Summary
-
Method Summary
Methods inherited from class com.sk89q.worldedit.math.convolution.Kernel
getHeight, getKernelData, getWidth, getXOrigin, getYOrigin
-
Constructor Details
-
GaussianKernel
public GaussianKernel(int radius, double sigma) Constructor of the kernel.- Parameters:
radius
- the resulting diameter will be radius * 2 + 1sigma
- controls 'flatness'
-