Point

class Point<P : Position<out P>?> : Deployment<P>

A single node in a single point.

Parameters

<P>

position type

Constructors

Link copied to clipboard
constructor(environment: Environment<out Any, P>, x: Double, y: Double)

Functions

Link copied to clipboard
open fun forEach(p: Consumer<in T>)
Link copied to clipboard
Optional LinkingRule associated to the deployment.
Link copied to clipboard
open fun iterator(): Iterator<P>
abstract fun iterator(): Iterator<T>
Link copied to clipboard
fun <R> Iterable<R>.randomElement(randomGenerator: <Error class: unknown class>): R

Returns a random element of the Iterable using the provided randomGenerator.

Link copied to clipboard
fun <R> Iterable<R>.shuffled(randomGenerator: <Error class: unknown class>): Iterable<R>

Fisher–Yates shuffle algorithm using a RandomGenerator. More information on Wikipedia.

Link copied to clipboard
Link copied to clipboard
open fun stream(): Stream<P>