alchemist-interfaces / it.unibo.alchemist.model.interfaces / Position / boundingBox

boundingBox

abstract fun boundingBox(range: Double): MutableList<out P>

Given a range, produces N coordinates, representing the N opposite vertices of the hypercube having the current coordinate as center and circumscribing the N-sphere defined by the range. In the case of two dimensional coordinates, it must return the opposite vertices of the square circumscribing the circle with center in this position and radius range.

Parameters

range -

    the radius of the hypersphere

Return
the vertices of the circumscribed hypercube