com.threerings.util
Class NoiseUtil

java.lang.Object
  extended by com.threerings.util.NoiseUtil

public class NoiseUtil
extends Object

Methods for generating Perlin noise. The algorithm used is that described in Ken Perlin's Improving Noise.


Constructor Summary
NoiseUtil()
           
 
Method Summary
static float getNoise(float x)
          Returns the noise value at the specified coordinate.
static float getNoise(float x, float y)
          Returns the noise value at the specified coordinates.
static float getNoise(float x, float y, float z)
          Returns the noise value at the specified coordinates.
static float getNoise(float x, float y, int z)
          Returns the noise value at the specified coordinates.
static float getNoise(float x, int y)
          Returns the noise value at the specified coordinates.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoiseUtil

public NoiseUtil()
Method Detail

getNoise

public static float getNoise(float x)
Returns the noise value at the specified coordinate.


getNoise

public static float getNoise(float x,
                             int y)
Returns the noise value at the specified coordinates.


getNoise

public static float getNoise(float x,
                             float y)
Returns the noise value at the specified coordinates.


getNoise

public static float getNoise(float x,
                             float y,
                             int z)
Returns the noise value at the specified coordinates.


getNoise

public static float getNoise(float x,
                             float y,
                             float z)
Returns the noise value at the specified coordinates.



Copyright © 2011. All Rights Reserved.