#pragma once #include #include /// Compare two floats for equality. static inline bool float_eq(float a, float b, float eps) { return fabsf(a - b) <= eps; }