|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectza.co.luma.math.sampling.PoissonDiskSampler
public class PoissonDiskSampler
Algorithm based on
Field Summary | |
---|---|
static int |
MAX_POINTS
A safety measure - no more than this number of points are produced by ther algorithm. |
Constructor Summary | |
---|---|
PoissonDiskSampler(double x0,
double y0,
double x1,
double y1,
double minDist,
RealFunction2DDouble distribution)
Construct a new PoissonDisk object, with a given domain and minimum distance between points. |
|
PoissonDiskSampler(double x0,
double y0,
double x1,
double y1,
double minDist,
RealFunction2DDouble distribution,
int pointsToGenerate)
Construct a new PoissonDisk object, with a given domain and minimum distance between points. |
Method Summary | |
---|---|
java.util.List<Vector2DDouble> |
sample()
Generates a list of points following the Poisson distribution. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAX_POINTS
Constructor Detail |
---|
public PoissonDiskSampler(double x0, double y0, double x1, double y1, double minDist, RealFunction2DDouble distribution, int pointsToGenerate)
x0
- x-coordinate of bottom left corner of domain.y0
- x-coordinate of bottom left corner of domain.x1
- x-coordinate of bottom left corner of domain.y1
- x-coordinate of bottom left corner of domain.distribution
- A function that gives the minimum radius between points in the vicinity of a point.public PoissonDiskSampler(double x0, double y0, double x1, double y1, double minDist, RealFunction2DDouble distribution)
x0
- x-coordinate of bottom left corner of domain.y0
- x-coordinate of bottom left corner of domain.x1
- x-coordinate of bottom left corner of domain.y1
- x-coordinate of bottom left corner of domain.distribution
- A function that gives the minimum radius between points in the vicinity of a point.Method Detail |
---|
public java.util.List<Vector2DDouble> sample()
sample
in interface Sampler<Vector2DDouble>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |