PoissonDistributionJRUS
@Deprecated public final class PoissonDistribution extends Object
Implements Martin Roberts’s tweak of "Fast Poisson Disk Sampling in Arbitrary Dimensions" by Robert Bridson.
Constructor and Description |
---|
PoissonDistribution()
Deprecated.
|
PoissonDistribution(long seed)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
List<processing.core.PVector> |
generate(double xmin,
double ymin,
double xmax,
double ymax,
double minDist,
int rejectionLimit)
Deprecated.
Generates a random point set, having a poisson/blue noise distribution.
|
List<processing.core.PVector> |
getPoints()
Deprecated.
Returns the point set generated by most recent call to
generate(double, double, double, double, double, int) . |
public PoissonDistribution()
public PoissonDistribution(long seed)
public List<processing.core.PVector> getPoints()
generate(double, double, double, double, double, int)
.public List<processing.core.PVector> generate(double xmin, double ymin, double xmax, double ymax, double minDist, int rejectionLimit)
xmin
- x-coordinate of boundary minimumymin
- y-coordinate of boundary minimumxmax
- x-coordinate of boundary maximumymax
- y-coordinate of boundary maximumminDist
- minimum euclidean distance between any two pointsrejectionLimit
- the limit on the number of attempts to generate a
random valid point around the previous point. Generally
6 is sufficient.Copyright © 2023. All rights reserved.