FastPoissonDiskSampling class Null safety

FastPoissonDiskSampling class


FastPoissonDiskSampling({Size shape = const Size(100, 100), int? radius, int maxTries = 30, int minDistance = 0, Function? rng})
FastPoissonDiskSampling constructor


angleIncrement double
read / write
angleIncrementOnSuccess double
read / write
cellSize double
read / write
epsilon double
read / write
grid Map<String, dynamic>
read / write
gridShape List<int>
read / write
hashCode int
The hash code for this object.
height double
read / write
maxTries int
read / write
neighbourhood List<List<int>>
initialize neighbourhood array
read / write
neighbourhoodLength int
read / write
piDiv3 double
read / write
processList List
read / write
radius int
read / write
radiusPlusEpsilon double
read / write
rng Function
read / write
runtimeType Type
A representation of the runtime type of the object.
samplePoints List<List<double>>
read / write
squaredRadius int
read / write
triesIncrementOnSuccess int
read / write
width double
initializations for basic variables
read / write


addPoint(List point) List?
Add a given point to the grid
addRandomPoint() List
Add a totally random point in the grid
directAddPoint(List point) List
Add a given point to the grid, without any check
fill() List<List<double>>
Automatically fill the grid, adding a random point to start the process if needed. Will block the thread, probably best to use it in a Future or Isolate.
getAllPoints() List
Get all the points in the grid.
inNeighbourhood(List point) bool
Check whether a given point is in the neighbourhood of existing points
next() List?
Try to generate a new point in the grid, returns null if it wasn't possible
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
random() double
random function that returns a value between 0 and 1, inclusive
reset() → void
Reinitialize the grid as well as the internal state
tinyNDArray(List<int> gridShape) Map<String, dynamic>
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.