| Package | Description |
|---|---|
| org.joml.sampling |
Contains classes for generating sampling patterns.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SpiralSampling.createEquiAngle(float radius,
int numRotations,
int numSamples,
Callback2d callback)
Create
numSamples number of samples on a spiral with maximum radius radius around the center using numRotations number of rotations
along the spiral, and call the given callback for each sample generated. |
void |
SpiralSampling.createEquiAngle(float radius,
int numRotations,
int numSamples,
float jitter,
Callback2d callback)
Create
numSamples number of samples on a spiral with maximum radius radius around the center using numRotations number of rotations
along the spiral, and call the given callback for each sample generated. |
BestCandidateSampling.Disk |
BestCandidateSampling.Disk.generate(Callback2d callback)
Generate 'best candidate' sample positions and call the given
callback for each generated sample. |
BestCandidateSampling.Quad |
BestCandidateSampling.Quad.generate(Callback2d callback)
Generate 'best candidate' sample positions and call the given
callback for each generated sample. |
void |
StratifiedSampling.generateCentered(int n,
float centering,
Callback2d callback)
Generate
n * n random sample positions in the unit square of x, y = [-1..+1]. |
void |
StratifiedSampling.generateRandom(int n,
Callback2d callback)
Generate
n * n random sample positions in the unit square of x, y = [-1..+1]. |
| Constructor and Description |
|---|
Disk(long seed,
float diskRadius,
float minDist,
int k,
Callback2d callback)
Create a new instance of
PoissonSampling.Disk which computes poisson-distributed samples on a disk with the given radius diskRadius and notifies the given
callback for each found sample point. |
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. |
Copyright © 2015–2019 JOML. All rights reserved.