PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
pocketmine\level\generator\noise\Perlin Class Reference
+ Inheritance diagram for pocketmine\level\generator\noise\Perlin:
+ Collaboration diagram for pocketmine\level\generator\noise\Perlin:

Public Member Functions

 __construct (Random $random, $octaves, $frequency, $amplitude)
 
 getNoise3D ($x, $y, $z)
 
 getNoise2D ($x, $y)
 
 noise2D ($x, $z, $normalized=false)
 
 noise3D ($x, $y, $z, $normalized=false)
 
 setOffset ($x, $y, $z)
 

Static Public Member Functions

static floor ($x)
 
static fade ($x)
 
static lerp ($x, $y, $z)
 
static grad ($hash, $x, $y, $z)
 

Static Public Attributes

static $grad3
 

Protected Attributes

 $perm = []
 
 $offsetX = 0
 
 $offsetY = 0
 
 $offsetZ = 0
 
 $octaves = 8
 
 $frequency
 
 $amplitude
 

Detailed Description

Definition at line 26 of file Perlin.php.

Member Data Documentation

pocketmine\level\generator\noise\Perlin::$grad3
static
Initial value:
= [
[1, 1, 0], [-1, 1, 0], [1, -1, 0], [-1, -1, 0],
[1, 0, 1], [-1, 0, 1], [1, 0, -1], [-1, 0, -1],
[0, 1, 1], [0, -1, 1], [0, 1, -1], [0, -1, -1]
]

Definition at line 27 of file Perlin.php.


The documentation for this class was generated from the following file: