Class SimpleMap2d

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

public class SimpleMap2d extends Object
A simple 2D map that can be used to detect obstacles.
  • Constructor Details

    • SimpleMap2d

      public SimpleMap2d()
      A simple 2D map that can be used to detect obstacles.
  • Method Details

    • getObstacles

      public ArrayList<Vector2d> getObstacles()
      Returns a list of detected "obstacles" (points) on the map.
      Returns:
      A list of detected "obstacles" (points) on the map.
    • createMap

      public int[][] createMap(Vector2d topLeft, Vector2d bottomRight, int decimals)
      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.