PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
|
Public Member Functions | |
__construct (Random $random, int $octaves, float $persistence, float $expansion) | |
getFastNoise1D (int $xSize, int $samplingRate, int $x, int $y, int $z) | |
getFastNoise2D (int $xSize, int $zSize, int $samplingRate, int $x, int $y, int $z) | |
getFastNoise3D (int $xSize, int $ySize, int $zSize, int $xSamplingRate, int $ySamplingRate, int $zSamplingRate, int $x, int $y, int $z) | |
getNoise2D ($x, $y) | |
getNoise3D ($x, $y, $z) | |
noise2D ($x, $z, $normalized=false) | |
noise3D ($x, $y, $z, $normalized=false) | |
Static Public Member Functions | |
static | bilinearLerp ($x, $y, $q00, $q01, $q10, $q11, $x1, $x2, $y1, $y2) |
static | linearLerp ($x, $x1, $x2, $q0, $q1) |
static | trilinearLerp ($x, $y, $z, $q000, $q001, $q010, $q011, $q100, $q101, $q110, $q111, $x1, $x2, $y1, $y2, $z1, $z2) |
Protected Attributes | |
float | $offsetX |
float | $offsetY |
float | $offsetZ |
array | $perm = [] |
const | F2 = 0.5 * (M_SQRT3 - 1) |
const | F3 = 1.0 / 3.0 |
const | G2 = (3 - M_SQRT3) / 6 |
const | G22 = self::G2 * 2.0 - 1 |
const | G3 = 1.0 / 6.0 |
const | grad3 |
Generates simplex-based noise.
This is a modified version of the freely published version in the paper by Stefan Gustavson at http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf
Definition at line 36 of file Simplex.php.
pocketmine\world\generator\noise\Simplex::__construct | ( | Random | $random, |
int | $octaves, | ||
float | $persistence, | ||
float | $expansion ) |
Definition at line 55 of file Simplex.php.
|
staticinherited |
|
inherited |
|
inherited |
|
inherited |
pocketmine\world\generator\noise\Simplex::getNoise2D | ( | $x, | |
$y ) |
float | $x | |
float | $y |
Reimplemented from pocketmine\world\generator\noise\Noise.
Definition at line 215 of file Simplex.php.
pocketmine\world\generator\noise\Simplex::getNoise3D | ( | $x, | |
$y, | |||
$z ) |
float | $x | |
float | $y | |
float | $z |
Reimplemented from pocketmine\world\generator\noise\Noise.
Definition at line 85 of file Simplex.php.
|
staticinherited |
|
inherited |
float | $x | |
float | $z | |
bool | $normalized |
Definition at line 144 of file Noise.php.
References pocketmine\world\generator\noise\Noise\getNoise2D().
|
inherited |
float | $x | |
float | $y | |
float | $z | |
bool | $normalized |
Definition at line 175 of file Noise.php.
References pocketmine\world\generator\noise\Noise\getNoise3D().
|
staticinherited |
|
protected |
Definition at line 49 of file Simplex.php.
|
protected |
Definition at line 51 of file Simplex.php.
|
protected |
Definition at line 50 of file Simplex.php.
|
protected |
Definition at line 53 of file Simplex.php.
|
protected |
Definition at line 43 of file Simplex.php.
|
protected |
Definition at line 46 of file Simplex.php.
|
protected |
Definition at line 44 of file Simplex.php.
|
protected |
Definition at line 45 of file Simplex.php.
|
protected |
Definition at line 47 of file Simplex.php.
|
protected |
Definition at line 37 of file Simplex.php.