PocketMine
Perlin Class Reference
Inheritance diagram for Perlin:
Noise Simplex

Public Member Functions

 __construct (Random $random, $octaves, $persistence, $expansion=1)
 
 getNoise3D ($x, $y, $z)
 
 getNoise2D ($x, $y)
 
- Public Member Functions inherited from Noise
 getNoise2D ($x, $z)
 
 getNoise3D ($x, $y, $z)
 
 noise2D ($x, $z, $normalized=false)
 
 noise3D ($x, $y, $z, $normalized=false)
 
 setOffset ($x, $y, $z)
 

Static Public Attributes

static $grad3
 

Additional Inherited Members

- Static Public Member Functions inherited from Noise
static floor ($x)
 
static fade ($x)
 
static lerp ($x, $y, $z)
 
static linearLerp ($x, $x1, $x2, $q0, $q1)
 
static bilinearLerp ($x, $y, $q00, $q01, $q10, $q11, $x1, $x2, $y1, $y2)
 
static trilinearLerp ($x, $y, $z, $q000, $q001, $q010, $q011, $q100, $q101, $q110, $q111, $x1, $x2, $y1, $y2, $z1, $z2)
 
static grad ($hash, $x, $y, $z)
 
- Protected Attributes inherited from Noise
 $perm = []
 
 $offsetX = 0
 
 $offsetY = 0
 
 $offsetZ = 0
 
 $octaves = 8
 
 $persistence
 
 $expansion
 

Field Documentation

$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]
]

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