24 #ifndef _UTILS_MATH_COMMON_H_
25 #define _UTILS_MATH_COMMON_H_
84 return sqrtf(powf(x1 - x2, 2) + powf(y1 - y2, 2));
102 return sqrtf(powf(x1 - x2, 2) + powf(y1 - y2, 2)) >= threshold;
Fawkes library namespace.
float point_dist(float x1, float y1, float x2, float y2)
Get distance of two points.
double sqr(double x)
Fast square multiplication.
bool points_different(float x1, float y1, float x2, float y2, float threshold=1e-4)
Check if two points are different with regard to a given threshold.