alchemist-interfaces / it.unibo.alchemist.model.interfaces / Environment2DWithObstacles / getObstaclesInRange

getObstaclesInRange

abstract fun getObstaclesInRange(centerx: Double, centery: Double, range: Double): MutableList<W>!

Given a point and a range, retrieves all the obstacles within.

Parameters

centerx - Double: the x coordinate of the center

centery - Double: the y coordinate of the center

range - Double: the range to scan

Return
MutableList<W>!: the list of Obstacles