Class Map2d

java.lang.Object
me.autobot.lib.math.map.Map2d

public class Map2d extends Object
A class that represents a 2D map of locations/obstacles.
  • Constructor Details

    • Map2d

      public Map2d()
      Create a new 2D map.
  • Method Details

    • addObstaclePoint

      public void addObstaclePoint(Vector2d location)
      Add an obstacle to the map.
      Parameters:
      location - The location of the obstacle.
    • getLocations

      public ArrayList<Vector2d> getLocations()
      Get the locations of the obstacles on the map.
      Returns:
      The locations of the obstacles on the map.