org.xith3d.utility.noise
Class Noise
java.lang.Object
org.xith3d.utility.noise.Noise
public class Noise
- extends java.lang.Object
PerlinSolidNoiseGenerator.java 1.0 98/06/16 Carl Burke
Encapsulates Perlin's method for solid noise generation.
Copyright (c) 1998 Carl Burke.
Adapted from copyrighted source code by Ken Perlin
and F. Kenton Musgrave to accompany:
Texturing and Modeling: A Procedural Approach
Ebert, D., Musgrave, K., Peachey, P., Perlin, K., and Worley, S.
AP Professional, September, 1994. ISBN 0-12-228760-6
Web site: http://www.cs.umbc.edu/~ebert/book/book.html
|
Field Summary |
static int |
B
Noise generation (interpolation) over 1,2, and 3 dimensions |
static int |
BM
|
static int |
N
|
static int |
NM
|
static int |
NP
|
|
Method Summary |
double |
bias(double a,
double b)
Supporting/filtering methods |
double |
gain(double a,
double b)
|
double |
getSeed()
|
double |
lerp(double t,
double a,
double b)
|
double |
noise(double[] vec,
int len)
|
double |
noise1(double arg)
|
double |
noise2(double[] vec)
|
double |
noise3(double[] vec)
|
double |
s_curve(double t)
|
void |
setSeed(double s)
|
double |
turbulence(double[] v,
double freq)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
B
public static final int B
- Noise generation (interpolation) over 1,2, and 3 dimensions
- See Also:
- Constant Field Values
BM
public static final int BM
- See Also:
- Constant Field Values
N
public static final int N
- See Also:
- Constant Field Values
NP
public static final int NP
- See Also:
- Constant Field Values
NM
public static final int NM
- See Also:
- Constant Field Values
Noise
public Noise()
Noise
public Noise(double seed)
setSeed
public void setSeed(double s)
getSeed
public double getSeed()
bias
public double bias(double a,
double b)
- Supporting/filtering methods
gain
public double gain(double a,
double b)
turbulence
public double turbulence(double[] v,
double freq)
s_curve
public double s_curve(double t)
lerp
public double lerp(double t,
double a,
double b)
noise1
public double noise1(double arg)
noise2
public double noise2(double[] vec)
noise3
public double noise3(double[] vec)
noise
public double noise(double[] vec,
int len)