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 voidSpiralSampling. createEquiAngle(float radius, int numRotations, int numSamples, float jitter, Callback2d callback)CreatenumSamplesnumber of samples on a spiral with maximum radiusradiusaround the center usingnumRotationsnumber of rotations along the spiral, and call the givencallbackfor each sample generated.voidSpiralSampling. createEquiAngle(float radius, int numRotations, int numSamples, Callback2d callback)CreatenumSamplesnumber of samples on a spiral with maximum radiusradiusaround the center usingnumRotationsnumber of rotations along the spiral, and call the givencallbackfor each sample generated.BestCandidateSampling.DiskBestCandidateSampling.Disk. generate(Callback2d callback)Generate 'best candidate' sample positions and call the givencallbackfor each generated sample.BestCandidateSampling.QuadBestCandidateSampling.Quad. generate(Callback2d callback)Generate 'best candidate' sample positions and call the givencallbackfor each generated sample.voidStratifiedSampling. generateCentered(int n, float centering, Callback2d callback)Generaten * nrandom sample positions in the unit square ofx, y = [-1..+1].voidStratifiedSampling. generateRandom(int n, Callback2d callback)Generaten * nrandom 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.Diskwhich computes poisson-distributed samples on a disk with the given radiusdiskRadiusand notifies the givencallbackfor each found sample point.Disk(long seed, int numSamples, Callback2d callback)Create a new instance ofUniformSampling.Disk, initialize the random number generator with the givenseedand generatenumSamplesnumber of sample positions on the unit disk, and call the givencallbackfor each sample generate.
-