Package org.joml.sampling
Class UniformSampling.Disk
java.lang.Object
org.joml.sampling.UniformSampling.Disk
- Enclosing class:
UniformSampling
Generates uniform samples on a unit disk.
- Author:
- Kai Burjack
-
Constructor Summary
ConstructorDescriptionDisk
(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. -
Method Summary
-
Constructor Details
-
Disk
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
-