wangzhengquan
2020-09-17 f6d7dbd2ac6938526b1023d1bc571d562b4625cf
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