Uses of Interface
org.joml.sampling.Callback2d
-
Packages that use Callback2d Package Description org.joml.sampling Contains classes for generating sampling patterns. -
-
Uses of Callback2d in org.joml.sampling
Methods in org.joml.sampling with parameters of type Callback2d Modifier and Type Method Description void
SpiralSampling. createEquiAngle(float radius, int numRotations, int numSamples, float jitter, Callback2d callback)
CreatenumSamples
number of samples on a spiral with maximum radiusradius
around the center usingnumRotations
number of rotations along the spiral, and call the givencallback
for each sample generated.void
SpiralSampling. createEquiAngle(float radius, int numRotations, int numSamples, Callback2d callback)
CreatenumSamples
number of samples on a spiral with maximum radiusradius
around the center usingnumRotations
number of rotations along the spiral, and call the givencallback
for each sample generated.BestCandidateSampling.Disk
BestCandidateSampling.Disk. generate(Callback2d callback)
Generate 'best candidate' sample positions and call the givencallback
for each generated sample.BestCandidateSampling.Quad
BestCandidateSampling.Quad. generate(Callback2d callback)
Generate 'best candidate' sample positions and call the givencallback
for each generated sample.void
StratifiedSampling. generateCentered(int n, float centering, Callback2d callback)
Generaten * n
random sample positions in the unit square ofx, y = [-1..+1]
.void
StratifiedSampling. generateRandom(int n, Callback2d callback)
Generaten * n
random sample positions in the unit square ofx, y = [-1..+1]
.Constructors in org.joml.sampling with parameters of type Callback2d Constructor Description Disk(long seed, float diskRadius, float minDist, int k, Callback2d callback)
Create a new instance ofPoissonSampling.Disk
which computes poisson-distributed samples on a disk with the given radiusdiskRadius
and notifies the givencallback
for each found sample point.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.
-