started adding floorplan LINT

new helper methods
This commit is contained in:
2017-03-20 12:10:34 +01:00
parent 06e0e0a5aa
commit 3868e42937
4 changed files with 90 additions and 4 deletions

View File

@@ -61,6 +61,10 @@ struct Point2 {
return std::sqrt(dx*dx + dy*dy);
}
std::string asString() const {
return "(" + std::to_string(x) + "," + std::to_string(y) + ")";
}
};
inline void swap(Point2& p1, Point2& p2) {