public static class Noise.Adapted3DFrom5D extends java.lang.Object implements Noise.Noise3D
setExtras(double)
to set w
and u
in a world made with 3D noise results in
something that looks like this.Modifier and Type | Field and Description |
---|---|
Noise.Noise5D |
basis |
double |
u |
double |
w |
Constructor and Description |
---|
Adapted3DFrom5D() |
Adapted3DFrom5D(Noise.Noise5D basis) |
Modifier and Type | Method and Description |
---|---|
double |
getNoise(double x,
double y,
double z) |
double |
getNoiseWithSeed(double x,
double y,
double z,
long seed) |
double |
getU() |
double |
getW() |
void |
setExtras(double theta)
This sets the two extra noise parameters given one parameter, theta, which is treated as looping over a
circle of different w and u values, with one cycle equal to a change of 1.0 in theta.
|
void |
setU(double u) |
void |
setW(double w) |
public Noise.Noise5D basis
public double w
public double u
public Adapted3DFrom5D()
public Adapted3DFrom5D(Noise.Noise5D basis)
public double getW()
public void setW(double w)
public double getU()
public void setU(double u)
public void setExtras(double theta)
theta
- only the fractional part matters; used to set both w and u. Cycles if it goes past an integer.public double getNoise(double x, double y, double z)
getNoise
in interface Noise.Noise3D
public double getNoiseWithSeed(double x, double y, double z, long seed)
getNoiseWithSeed
in interface Noise.Noise3D
Copyright © Eben Howard 2012–2022. All rights reserved.