Obstacles Break Connection
class ObstaclesBreakConnection<T, P : Position<P>?, Vector<P>?> : ConnectWithinDistance<T, P>
Content copied to clipboard
Similar to ConnectWithinDistance, but if the environment has obstacles, the links are removed.
Parameters
<P>
position type
<T>
concentration type
Constructors
Functions
Link copied to clipboard
open fun computeNeighborhood(center: Node<T>, env: Environment<T, P>): Neighborhood<T>
Content copied to clipboard
Subclasses may change the way a neighborhood is computed.
abstract fun computeNeighborhood(p: Node<T>, p1: Environment<T, P>): Neighborhood<T>
Content copied to clipboard
Link copied to clipboard