many changes :P
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#define FLOOR_H
|
||||
|
||||
#include <vector>
|
||||
#include "../geo/Line2D.h"
|
||||
#include "../geo/Line2.h"
|
||||
|
||||
/**
|
||||
* represents one floor by describing all contained obstacles
|
||||
@@ -13,7 +13,7 @@ private:
|
||||
|
||||
|
||||
/** all obstacles within the floor */
|
||||
std::vector<Line2D> lines;
|
||||
std::vector<Line2> lines;
|
||||
|
||||
/** total width of the floor (in meter) */
|
||||
double width_cm;
|
||||
@@ -28,12 +28,12 @@ public:
|
||||
Floor(const float width_cm, const float depth_cm) : width_cm(width_cm), depth_cm(depth_cm) {;}
|
||||
|
||||
/** get all obstacles */
|
||||
const std::vector<Line2D>& getObstacles() const {
|
||||
const std::vector<Line2>& getObstacles() const {
|
||||
return lines;
|
||||
}
|
||||
|
||||
/** add a new obstacle to this floor */
|
||||
void addObstacle(const Line2D& l ) {
|
||||
void addObstacle(const Line2& l ) {
|
||||
lines.push_back(l);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user