51 Map(
float cellSize, std::vector<std::vector<int>> &grid, std::vector<std::vector<Point>> &obstacles);
110 const std::vector<std::vector<ObstacleSegment>>&
GetObstacles()
const;
138 std::vector<std::vector<int>> *grid;
139 std::vector<std::vector<ObstacleSegment>> *obstacles;
unsigned int GetWidth() const
Return width of grid.
The Node class defines a cell of grid (see Map class)
bool CellIsTraversable(int i, int j) const
Check Cell (i,j) is traversable.
File contains Node, Point, Line, Vertex, ObstacleSegment classes and some methods and functions imple...
bool CellOnGrid(int i, int j) const
Check Cell (i,j) is inside grid.
float GetCellSize() const
Return size of cell side.
The Point class defines a position (or euclidean vector from (0,0)) in 2D space.
const std::vector< std::vector< ObstacleSegment > > & GetObstacles() const
Return obstacles in form of polygons.
Point GetPoint(const Node &node) const
Return center of grid cell in orthogonal coordinates.
bool CellIsObstacle(int i, int j) const
Check Cell (i,j) is obstacle.
Map class describes static environment.
Map & operator=(const Map &obj)
Assignment operator.
Map()
Map default constructor.
Node GetClosestNode(const Point &point) const
Return cell to which point in orthogonal coordinates belong.
unsigned int GetHeight() const
Return height of grid.