many changes :P

This commit is contained in:
k-a-z-u
2016-01-21 20:01:20 +01:00
parent a7dc0cabbb
commit 12084fe147
29 changed files with 2900 additions and 144 deletions

View File

@@ -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);
}