Genisys  Genisys API 1.9.3
A server software for Minecraft: Pocket Edition with many features
Simplex Class Reference
Inheritance diagram for Simplex:
[legend]
Collaboration diagram for Simplex:
[legend]

Public Member Functions

 __construct (Random $random, $octaves, $persistence, $expansion=1)
 
 getNoise3D ($x, $y, $z)
 
 getNoise2D ($x, $y)
 
- Public Member Functions inherited from Perlin
 __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 Protected Member Functions

static dot2D ($g, $x, $y)
 
static dot3D ($g, $x, $y, $z)
 
static dot4D ($g, $x, $y, $z, $w)
 

Protected Attributes

 $offsetW
 
- Protected Attributes inherited from Noise
 $perm = []
 
 $offsetX = 0
 
 $offsetY = 0
 
 $offsetZ = 0
 
 $octaves = 8
 
 $persistence
 
 $expansion
 

Static Protected Attributes

static $SQRT_3
 
static $SQRT_5
 
static $F2
 
static $G2
 
static $G22
 
static $F3
 
static $G3
 
static $F4
 
static $G4
 
static $G42
 
static $G43
 
static $G44
 
static $grad4
 
static $simplex
 

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)
 
- Static Public Attributes inherited from Perlin
static $grad3
 

Detailed Description

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

Field Documentation

$grad4
staticprotected
Initial value:
= [[0, 1, 1, 1], [0, 1, 1, -1], [0, 1, -1, 1], [0, 1, -1, -1],
[0, -1, 1, 1], [0, -1, 1, -1], [0, -1, -1, 1], [0, -1, -1, -1],
[1, 0, 1, 1], [1, 0, 1, -1], [1, 0, -1, 1], [1, 0, -1, -1],
[-1, 0, 1, 1], [-1, 0, 1, -1], [-1, 0, -1, 1], [-1, 0, -1, -1],
[1, 1, 0, 1], [1, 1, 0, -1], [1, -1, 0, 1], [1, -1, 0, -1],
[-1, 1, 0, 1], [-1, 1, 0, -1], [-1, -1, 0, 1], [-1, -1, 0, -1],
[1, 1, 1, 0], [1, 1, -1, 0], [1, -1, 1, 0], [1, -1, -1, 0],
[-1, 1, 1, 0], [-1, 1, -1, 0], [-1, -1, 1, 0], [-1, -1, -1, 0]]
$simplex
staticprotected
Initial value:
= [
[0, 1, 2, 3], [0, 1, 3, 2], [0, 0, 0, 0], [0, 2, 3, 1], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [1, 2, 3, 0],
[0, 2, 1, 3], [0, 0, 0, 0], [0, 3, 1, 2], [0, 3, 2, 1], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [1, 3, 2, 0],
[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0],
[1, 2, 0, 3], [0, 0, 0, 0], [1, 3, 0, 2], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [2, 3, 0, 1], [2, 3, 1, 0],
[1, 0, 2, 3], [1, 0, 3, 2], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [2, 0, 3, 1], [0, 0, 0, 0], [2, 1, 3, 0],
[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0],
[2, 0, 1, 3], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [3, 0, 1, 2], [3, 0, 2, 1], [0, 0, 0, 0], [3, 1, 2, 0],
[2, 1, 0, 3], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [3, 1, 0, 2], [0, 0, 0, 0], [3, 2, 0, 1], [3, 2, 1, 0]]

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