Polygon
open class Polygon<P : Position2D<out P>>(environment: Environment<*, P>, randomGenerator: RandomGenerator, nodes: Int, pointsInput: List<*>) : AbstractRandomDeployment<P>
Content copied to clipboard
Creates a new Polygon with the given points.
Parameters
nodes
the count of nodes that need to get displaced inside the polygon
points Input
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).
Constructors
Link copied to clipboard
fun <P : Position2D<out P>> Polygon(environment: Environment<*, P>, randomGenerator: RandomGenerator, nodes: Int, pointsInput: List<*>)
Content copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard