| Modifier and Type | Field and Description |
|---|---|
static int |
RELATIVE_OFFSET_FREQUENCY
The relative offset of the Frequency parameter in the
float array. |
static int |
RELATIVE_OFFSET_GAIN
The relative offset of the Gain parameter in the
float array. |
static int |
RELATIVE_OFFSET_MAXIMUM
The relative offset of the Maximum parameter in the
float array. |
static int |
RELATIVE_OFFSET_MINIMUM
The relative offset of the Minimum parameter in the
float array. |
static int |
RELATIVE_OFFSET_OCTAVES
The relative offset of the Octaves parameter in the
float array. |
static int |
SIZE
The size of a
Terrain in the float array. |
static int |
TYPE
The type number associated with a
Terrain. |
| Constructor and Description |
|---|
Terrain(float frequency,
float gain,
float minimum,
float maximum,
int octaves)
Constructs a new
Terrain instance. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object)
Compares
object to this Terrain instance for equality. |
float |
getFrequency()
Returns the frequency of this
Terrain instance. |
float |
getGain()
Returns the gain of this
Terrain instance. |
float |
getMaximum()
Returns the maximum of this
Terrain instance. |
float |
getMinimum()
Returns the minimum of this
Terrain instance. |
int |
getOctaves()
Returns the octaves of this
Terrain instance. |
int |
getSize()
Returns the size of this
Terrain instance. |
int |
getType()
Returns the type of this
Terrain instance. |
int |
hashCode()
Returns a hash code for this
Terrain instance. |
public static final int RELATIVE_OFFSET_FREQUENCY
float array. The value is 0.public static final int RELATIVE_OFFSET_GAIN
float array. The value is 1.public static final int RELATIVE_OFFSET_MAXIMUM
float array. The value is 3.public static final int RELATIVE_OFFSET_MINIMUM
float array. The value is 2.public static final int RELATIVE_OFFSET_OCTAVES
float array. The value is 4.public static final int SIZE
Terrain in the float array. The size is 5.public static final int TYPE
Terrain. The number is 4.public Terrain(float frequency,
float gain,
float minimum,
float maximum,
int octaves)
Terrain instance.frequency - the frequency to usegain - the gain to useminimum - the minimum to usemaximum - the maximum to useoctaves - the octaves to usepublic boolean equals(java.lang.Object object)
object to this Terrain instance for equality.
Returns true if, and only if, object is an instance of Terrain, and their respective values are equal, false otherwise.
equals in class java.lang.Objectobject - the Object to compare to this Terrain instance for equalitytrue if, and only if, object is an instance of Terrain, and their respective values are equal, false otherwisepublic float getFrequency()
Terrain instance.Terrain instancepublic float getGain()
Terrain instance.Terrain instancepublic float getMaximum()
Terrain instance.Terrain instancepublic float getMinimum()
Terrain instance.Terrain instancepublic int getOctaves()
Terrain instance.Terrain instancepublic int getSize()
Terrain instance.public int getType()
Terrain instance.public int hashCode()
Terrain instance.hashCode in class java.lang.ObjectTerrain instance