started adding earth-mapping
some new helper methods added support for floorplan metadata load/save
This commit is contained in:
@@ -17,6 +17,8 @@ struct Point2 {
|
||||
/** ctor */
|
||||
Point2(const float x, const float y) : x(x), y(y) {;}
|
||||
|
||||
Point2 operator - () const {return Point2(-x, -y);}
|
||||
|
||||
|
||||
Point2 operator + (const Point2& o) const {return Point2(x+o.x, y+o.y);}
|
||||
|
||||
@@ -60,4 +62,9 @@ struct Point2 {
|
||||
|
||||
};
|
||||
|
||||
inline void swap(Point2& p1, Point2& p2) {
|
||||
std::swap(p1.x, p2.x);
|
||||
std::swap(p1.y, p2.y);
|
||||
}
|
||||
|
||||
#endif // POINT2_H
|
||||
|
||||
Reference in New Issue
Block a user