Type alias NoiseFunction2D

NoiseFunction2D: ((x: number, y: number) => number)

Type declaration

    • (x: number, y: number): number
    • Samples the noise field in two dimensions

      Coordinates should be finite, bigger than -2^31 and smaller than 2^31.

      Returns

      a number in the interval [-1, 1]

      Parameters

      • x: number
      • y: number

      Returns number

Generated using TypeDoc