Class UniformSampling.Disk

java.lang.Object
org.joml.sampling.UniformSampling.Disk
Enclosing class:
UniformSampling

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

    • 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