algorithm/include/graph.h
@@ -2,6 +2,7 @@ #define __USG_GRAPH_H__ #include "usg_common.h" #include <cmath> struct Point { //public: @@ -62,4 +63,10 @@ return {b.x - a.x, b.y - a.y}; } static inline double getVecor2Len(Vector2& v) { return sqrt(v.x * v.x + v.y * v.y); } #endif