CircularArc

data class CircularArc<P : Position2D<P>> @JvmOverloads constructor(    val environment: Environment<*, P>,     val randomGenerator: RandomGenerator,     val nodeCount: Int,     val centerX: Double = 0.0,     val centerY: Double = 0.0,     val radius: Double = 1.0,     val radiusRandomness: Double = 0.0,     val angleRandomness: Double = 0.0,     val startAngle: Double = 0.0,     val endAngle: Double = 2 * PI) : Deployment<P>

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)

Functions

Link copied to clipboard
open fun forEach(p0: Consumer<in P>)
Link copied to clipboard
open fun <T : Any> getAssociatedLinkingRule(): LinkingRule<T, P>?

Optional LinkingRule associated to the deployment.

Link copied to clipboard
open operator override fun iterator(): MutableIterator<P>
Link copied to clipboard
open fun spliterator(): Spliterator<P>
Link copied to clipboard
open override fun stream(): Stream<P>

Properties

Link copied to clipboard
val angleRandomness: Double = 0.0
Link copied to clipboard
val centerX: Double = 0.0
Link copied to clipboard
val centerY: Double = 0.0
Link copied to clipboard
val endAngle: Double
Link copied to clipboard
val environment: Environment<*, P>
Link copied to clipboard
val nodeCount: Int
Link copied to clipboard
val radius: Double = 1.0
Link copied to clipboard
val radiusRandomness: Double = 0.0
Link copied to clipboard
val randomGenerator: RandomGenerator
Link copied to clipboard
val startAngle: Double = 0.0