Class UniformSampling.Disk

  • Enclosing class:
    UniformSampling

    public static class UniformSampling.Disk
    extends java.lang.Object
    Generates uniform samples on a unit disk.
    Author:
    Kai Burjack
    • Constructor Summary

      Constructors 
      Constructor Description
      Disk​(long seed, int numSamples, Callback2d callback)
      Create a new instance of UniformSampling.Disk, initialize the random number generator with the given seed and generate numSamples number of sample positions on the unit disk, and call the given callback for each sample generate.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Disk

        public Disk​(long seed,
                    int numSamples,
                    Callback2d callback)
        Create a new instance of UniformSampling.Disk, initialize the random number generator with the given seed and generate numSamples number of sample positions on the unit disk, and call the given callback for each sample generate.
        Parameters:
        seed - the seed to initialize the random number generator with
        numSamples - the number of samples to generate
        callback - will be called for each sample generated