Package org.joml.sampling
Class UniformSampling.Disk
- java.lang.Object
-
- org.joml.sampling.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 ofUniformSampling.Disk
, initialize the random number generator with the givenseed
and generatenumSamples
number of sample positions on the unit disk, and call the givencallback
for each sample generate.
-
-
-
Constructor Detail
-
Disk
public Disk(long seed, int numSamples, Callback2d callback)
Create a new instance ofUniformSampling.Disk
, initialize the random number generator with the givenseed
and generatenumSamples
number of sample positions on the unit disk, and call the givencallback
for each sample generate.- Parameters:
seed
- the seed to initialize the random number generator withnumSamples
- the number of samples to generatecallback
- will be called for each sample generated
-
-