Documentation of 'jvx.numeric.PnNoise' Java class
PnNoise ("JavaView Reference Manual")
"JavaView? v5.03.003"
jvx.numeric

Class PnNoise



  • public class PnNoise
    extends java.lang.Object
    Generates 2D procedural white noise by hashtable-like method to generate a gradient on an integer lattice that is made continuous by smoothed interpolation. Noise is 256-periodic.
    Author:
    Eike Preuß
    Version:
    15.05.05, 2.00 revised (kp) Formatted according to jv style.
    20.02.03, 1.20 revised (ep) New method intNoise. Check for negative (x,y) values added.
    08.07.01, 1.10 revised (ep) Converted to float.
    • Constructor Summary

      Constructors 
      Constructor and Description
      PnNoise()
      Creates and initializes new noise
    • Field Detail

      • m_preComputedNoise

        public int[][] m_preComputedNoise
    • Constructor Detail

      • PnNoise

        public PnNoise()
        Creates and initializes new noise
    • Method Detail

      • noise

        public float noise(float x,
                           float y)
        Value of white noise at given 2D point.
        Returns:
        noise value [-1;1]
      • intNoise

        public int intNoise(double x,
                            double y)
        Value of white noise at given 2D point.
        Returns:
        noise value [0;255]
      • preComputeNoise

        public void preComputeNoise(double coarseness,
                                    int xmin,
                                    int ymin,
                                    int xmax,
                                    int ymax)
        Since:
        JavaView 2.65.000
"JavaView? v5.03.003"

"

The software JavaView? is copyright protected. All Rights Reserved.
"

You see the box below because you did not login.