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