refactored the new floorplan
new helper methods/operator toe geo classes
This commit is contained in:
@@ -38,6 +38,10 @@ struct Point2 {
|
||||
|
||||
bool operator == (const Point2& o) const {return x==o.x && y==o.y;}
|
||||
|
||||
bool operator != (const Point2& o) const {return x!=o.x || y!=o.y;}
|
||||
|
||||
|
||||
Point2 perpendicular() const {return Point2(-y, x);}
|
||||
|
||||
/** get the distance between this point and the other one */
|
||||
float getDistance(const Point2& o) const {
|
||||
|
||||
Reference in New Issue
Block a user