FastPoissonDiskSampling class
FastPoissonDiskSampling class
Constructors
Properties
- angleIncrement ↔ double
-
getter/setter pair
- angleIncrementOnSuccess ↔ double
-
getter/setter pair
- cellSize ↔ double
-
getter/setter pair
- epsilon ↔ double
-
getter/setter pair
-
grid
↔ Map<
String, dynamic> -
getter/setter pair
-
gridShape
↔ List<
int> -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- height ↔ double
-
getter/setter pair
- maxTries ↔ int
-
getter/setter pair
-
neighbourhood
↔ List<
List< int> > -
initialize neighbourhood array
getter/setter pair
- neighbourhoodLength ↔ int
-
getter/setter pair
- piDiv3 ↔ double
-
getter/setter pair
- processList ↔ List
-
getter/setter pair
- radius ↔ int
-
getter/setter pair
- radiusPlusEpsilon ↔ double
-
getter/setter pair
- rng ↔ Function
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
samplePoints
↔ List<
List< double> > -
getter/setter pair
- squaredRadius ↔ int
-
getter/setter pair
- triesIncrementOnSuccess ↔ int
-
getter/setter pair
- width ↔ double
-
initializations for basic variables
getter/setter pair
Methods
-
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 nonexistent method or property is accessed.
inherited
-
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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited