Package me.autobot.lib.math.map
Class Map2d
java.lang.Object
me.autobot.lib.math.map.Map2d
A class that represents a 2D map of locations/obstacles.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addObstaclePoint
(Vector2d location) Add an obstacle to the map.Get the locations of the obstacles on the map.
-
Constructor Details
-
Map2d
public Map2d()Create a new 2D map.
-
-
Method Details
-
addObstaclePoint
Add an obstacle to the map.- Parameters:
location
- The location of the obstacle.
-
getLocations
Get the locations of the obstacles on the map.- Returns:
- The locations of the obstacles on the map.
-