| java.lang.Object org.jvnet.substance.utils.PerlinNoiseGenerator
PerlinNoiseGenerator | public class PerlinNoiseGenerator (Code) | | A class for producing Perlin-inspired noise. The code written by Ken Perlin.
author: Ken Perlin http://mrl.nyu.edu/~perlin/ |
Field Summary | |
final static int | p Permutations. | final static int | permutation Permutations. |
Method Summary | |
static double | fade(double t) Fades the specified value.
Parameters: t - Value to fade. | static double | grad(int hash, double x, double y, double z) | static double | lerp(double t, double a, double b) Interpolates the specified value.
Parameters: t - Value. Parameters: a - Starting interpolation value. Parameters: b - Ending interpolation value. | public static double | noise(double x, double y, double z) Returns noise for the specified coordinates.
Parameters: x - X coordinate. Parameters: y - Y coordinate. Parameters: z - Z coordinate. |
p | final static int p(Code) | | Permutations.
|
permutation | final static int permutation(Code) | | Permutations.
|
fade | static double fade(double t)(Code) | | Fades the specified value.
Parameters: t - Value to fade. faded value. |
grad | static double grad(int hash, double x, double y, double z)(Code) | | Parameters: hash - Parameters: x - Parameters: y - Parameters: z - |
lerp | static double lerp(double t, double a, double b)(Code) | | Interpolates the specified value.
Parameters: t - Value. Parameters: a - Starting interpolation value. Parameters: b - Ending interpolation value. Interpolated value. |
noise | public static double noise(double x, double y, double z)(Code) | | Returns noise for the specified coordinates.
Parameters: x - X coordinate. Parameters: y - Y coordinate. Parameters: z - Z coordinate. Noise for the specified coordinates. |
|
|