Package com.jhlabs.math
Class SCNoise
- java.lang.Object
-
- com.jhlabs.math.SCNoise
-
- All Implemented Interfaces:
Function1D
,Function2D
,Function3D
public class SCNoise extends java.lang.Object implements Function1D, Function2D, Function3D
Sparse Convolution Noise. This is computationally very expensive, but worth it.
-
-
Field Summary
Fields Modifier and Type Field Description short[]
perm
-
Constructor Summary
Constructors Constructor Description SCNoise()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description float
catrom2(float d)
float
evaluate(float x)
float
evaluate(float x, float y)
float
evaluate(float x, float y, float z)
static int
floor(float x)
-
-
-
Method Detail
-
evaluate
public float evaluate(float x)
- Specified by:
evaluate
in interfaceFunction1D
-
evaluate
public float evaluate(float x, float y)
- Specified by:
evaluate
in interfaceFunction2D
-
evaluate
public float evaluate(float x, float y, float z)
- Specified by:
evaluate
in interfaceFunction3D
-
floor
public static int floor(float x)
-
catrom2
public float catrom2(float d)
-
-