minor changes to floorplan

fixed some compile issues
worked on nav-meshes
added some tests
This commit is contained in:
2018-01-16 12:41:05 +01:00
parent fee6cd3496
commit 55061ef0da
24 changed files with 1288 additions and 205 deletions

View File

@@ -130,6 +130,10 @@ namespace Floorplan {
default: throw Exception("out of bounds");
}
}
/** same z-value for all points? */
bool isLeveled() const {
return (p1.z == p2.z) && (p2.z == p3.z) && (p3.z == p4.z);
}
};
/** additional type-info for obstacles */
@@ -202,6 +206,7 @@ namespace Floorplan {
/** describes one floor within the map, starting at a given height */
struct Floor {
bool enabled = true;
float atHeight; // the floor's starting height
float height; // the floor's total height (from start)
std::string name; // the floor's name