public class CellularFunction2D extends Object implements Function2D
Modifier and Type | Class and Description |
---|---|
(package private) class |
CellularFunction2D.Point |
Modifier and Type | Field and Description |
---|---|
boolean |
angular |
boolean |
cells |
private float[] |
coefficients |
float |
distancePower |
private Random |
random |
private CellularFunction2D.Point[] |
results |
Constructor and Description |
---|
CellularFunction2D() |
Modifier and Type | Method and Description |
---|---|
private float |
checkCube(float x,
float y,
int cubeX,
int cubeY,
CellularFunction2D.Point[] results) |
float |
evaluate(float x,
float y) |
float |
getCoefficient(int c) |
void |
setCoefficient(int c,
float v) |
public float distancePower
public boolean cells
public boolean angular
private float[] coefficients
private CellularFunction2D.Point[] results
public CellularFunction2D()
public void setCoefficient(int c, float v)
public float getCoefficient(int c)
private float checkCube(float x, float y, int cubeX, int cubeY, CellularFunction2D.Point[] results)
public float evaluate(float x, float y)
evaluate
in interface Function2D
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses