Circular Arc
data class CircularArc<P : Position2D<P>> @JvmOverloads constructor(environment: Environment<*, P>, randomGenerator: RandomGenerator, nodeCount: Int, centerX: Double, centerY: Double, radius: Double, radiusRandomness: Double, angleRandomness: Double, startAngle: Double, endAngle: Double) : Deployment<P>
Content copied to clipboard
Displaces the nodes in the environment in a circular arc, given a nodeCount, the coordinates of the circle's center centerX and centerY, the circle's radius radius, perturbation randomness (uniform, generated via randomGenerator) for radius radiusRandomness and for angle angleRandomness, a startAngle, and an endAngle.
Default values generate a uniform deployment on a circumference.
Constructors
Link copied to clipboard
fun <P : Position2D<P>> CircularArc(environment: Environment<*, P>, randomGenerator: RandomGenerator, nodeCount: Int, centerX: Double = 0.0, centerY: Double = 0.0, radius: Double = 1.0, radiusRandomness: Double = 0.0, angleRandomness: Double = 0.0, startAngle: Double = 0.0, endAngle: Double = 2 * PI)
Content copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard