Polygon
Creates a new Polygon with the given points.
Parameters
the simulation environment
the RNG used for placements
the count of nodes that need to get displaced inside the polygon
the points of the polygon. The class does not check for "malformed" polygons (e.g. with intersections). If the provided points do not represent a valid polygon in bidimensional space, the behaviour of this class is undefined. There polygon is closed automatically (there is no need to pass the first point also as last element).
Type Parameters
the position2D type
Constructors
Functions
Returns the optional NetworkModel associated to the deployment, or null if there is none.
Returns a random element of the Iterable using the provided randomGenerator.
Fisher–Yates shuffle algorithm using a RandomGenerator. More information on Wikipedia.