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;
float point_dist(float x1, float y1, float x2, float y2)
Get distance of two points.
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.
Fawkes library namespace.
double sqr(double x)
Fast square multiplication.