Package me.autobot.lib.math.map
Class SimpleMap2d
java.lang.Object
me.autobot.lib.math.map.SimpleMap2d
A simple 2D map that can be used to detect obstacles.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SimpleMap2d
public SimpleMap2d()A simple 2D map that can be used to detect obstacles.
-
-
Method Details
-
getObstacles
Returns a list of detected "obstacles" (points) on the map.- Returns:
- A list of detected "obstacles" (points) on the map.
-
createMap
Creates a 2D array map of the obstacles in the map.- Parameters:
topLeft
- The top left corner of the map.bottomRight
- The bottom right corner of the map.decimals
- The number of decimals to use for the map.- Returns:
- A 2D array map of the obstacles in the map.
-