Noise
    
            
            in package
            
        
    
    
    
        
        
    
Table of Contents
- $expansion : float
- $octaves : int
- $persistence : float
- __construct() : mixed
- bilinearLerp() : float
- getFastNoise1D() : SplFixedArray|array<string|int, float>
- getFastNoise2D() : SplFixedArray|array<string|int, array<string|int, float>>
- getFastNoise3D() : array<string|int, array<string|int, array<string|int, float>>>
- getNoise2D() : float
- getNoise3D() : float
- linearLerp() : float
- noise2D() : float
- noise3D() : float
- trilinearLerp() : float
Properties
$expansion
    protected
        float
    $expansion
    
    
    
    
$octaves
    protected
        int
    $octaves
    
    
    
    
$persistence
    protected
        float
    $persistence
    
    
    
    
Methods
__construct()
    public
                    __construct(int $octaves, float $persistence, float $expansion) : mixed
        
        Parameters
- $octaves : int
- $persistence : float
- $expansion : float
Return values
mixed —bilinearLerp()
    public
            static        bilinearLerp(float $x, float $y, float $q00, float $q01, float $q10, float $q11, float $x1, float $x2, float $y1, float $y2) : float
    
        Parameters
- $x : float
- $y : float
- $q00 : float
- $q01 : float
- $q10 : float
- $q11 : float
- $x1 : float
- $x2 : float
- $y1 : float
- $y2 : float
Return values
float —getFastNoise1D()
    public
                    getFastNoise1D(int $xSize, int $samplingRate, int $x, int $y, int $z) : SplFixedArray|array<string|int, float>
    
        Parameters
- $xSize : int
- $samplingRate : int
- $x : int
- $y : int
- $z : int
Tags
Return values
SplFixedArray|array<string|int, float> —getFastNoise2D()
    public
                    getFastNoise2D(int $xSize, int $zSize, int $samplingRate, int $x, int $y, int $z) : SplFixedArray|array<string|int, array<string|int, float>>
    
        Parameters
- $xSize : int
- $zSize : int
- $samplingRate : int
- $x : int
- $y : int
- $z : int
Tags
Return values
SplFixedArray|array<string|int, array<string|int, float>> —getFastNoise3D()
    public
                    getFastNoise3D(int $xSize, int $ySize, int $zSize, int $xSamplingRate, int $ySamplingRate, int $zSamplingRate, int $x, int $y, int $z) : array<string|int, array<string|int, array<string|int, float>>>
    
        Parameters
- $xSize : int
- $ySize : int
- $zSize : int
- $xSamplingRate : int
- $ySamplingRate : int
- $zSamplingRate : int
- $x : int
- $y : int
- $z : int
Return values
array<string|int, array<string|int, array<string|int, float>>> —getNoise2D()
    public
    abstract                getNoise2D(float $x, float $z) : float
    
        Parameters
- $x : float
- $z : float
Return values
float —getNoise3D()
    public
    abstract                getNoise3D(float $x, float $y, float $z) : float
    
        Parameters
- $x : float
- $y : float
- $z : float
Return values
float —linearLerp()
    public
            static        linearLerp(float $x, float $x1, float $x2, float $q0, float $q1) : float
    
        Parameters
- $x : float
- $x1 : float
- $x2 : float
- $q0 : float
- $q1 : float
Return values
float —noise2D()
    public
                    noise2D(float $x, float $z[, bool $normalized = false ]) : float
    
        Parameters
- $x : float
- $z : float
- $normalized : bool = false
Return values
float —noise3D()
    public
                    noise3D(float $x, float $y, float $z[, bool $normalized = false ]) : float
    
        Parameters
- $x : float
- $y : float
- $z : float
- $normalized : bool = false
Return values
float —trilinearLerp()
    public
            static        trilinearLerp(float $x, float $y, float $z, float $q000, float $q001, float $q010, float $q011, float $q100, float $q101, float $q110, float $q111, float $x1, float $x2, float $y1, float $y2, float $z1, float $z2) : float
    
        Parameters
- $x : float
- $y : float
- $z : float
- $q000 : float
- $q001 : float
- $q010 : float
- $q011 : float
- $q100 : float
- $q101 : float
- $q110 : float
- $q111 : float
- $x1 : float
- $x2 : float
- $y1 : float
- $y2 : float
- $z1 : float
- $z2 : float