public class SimplexOctaveGenerator extends OctaveGenerator
octaves, xScale, yScale, zScale| Constructor | Description |
|---|---|
SimplexOctaveGenerator(long seed,
int octaves) |
Creates a simplex octave generator for the given world
|
SimplexOctaveGenerator(Random rand,
int octaves) |
Creates a simplex octave generator for the given
Random |
SimplexOctaveGenerator(World world,
int octaves) |
Creates a simplex octave generator for the given world
|
| Modifier and Type | Method | Description |
|---|---|---|
double |
getWScale() |
Gets the scale used for each W-coordinates passed
|
double |
noise(double x,
double y,
double z,
double w,
double frequency,
double amplitude) |
Generates noise for the 3D coordinates using the specified number of
octaves and parameters
|
double |
noise(double x,
double y,
double z,
double w,
double frequency,
double amplitude,
boolean normalized) |
Generates noise for the 3D coordinates using the specified number of
octaves and parameters
|
void |
setScale(double scale) |
Sets the scale used for all coordinates passed to this generator.
|
void |
setWScale(double scale) |
Sets the scale used for each W-coordinates passed
|
public SimplexOctaveGenerator(@NotNull
World world,
int octaves)
world - World to construct this generator foroctaves - Amount of octaves to createpublic SimplexOctaveGenerator(long seed,
int octaves)
seed - Seed to construct this generator foroctaves - Amount of octaves to createpublic void setScale(double scale)
OctaveGeneratorThis is the equivalent to setting each coordinate to the specified value.
setScale in class OctaveGeneratorscale - New value to scale each coordinate bypublic double getWScale()
public void setWScale(double scale)
scale - New W scalepublic double noise(double x,
double y,
double z,
double w,
double frequency,
double amplitude)
x - X-coordinatey - Y-coordinatez - Z-coordinatew - W-coordinatefrequency - How much to alter the frequency by each octaveamplitude - How much to alter the amplitude by each octavepublic double noise(double x,
double y,
double z,
double w,
double frequency,
double amplitude,
boolean normalized)
x - X-coordinatey - Y-coordinatez - Z-coordinatew - W-coordinatefrequency - How much to alter the frequency by each octaveamplitude - How much to alter the amplitude by each octavenormalized - If true, normalize the value to [-1, 1]Copyright © 2020. All rights reserved.