| LCOV - code coverage report | |||||||||||||||||||||||||
|
|||||||||||||||||||||||||
Line data Source code 1 : #pragma once 2 : 3 : #include <cmath> 4 : #include "utils_export.h" 5 : 6 : namespace Utils 7 : { 8 : template<class R> 9 0 : bool equals_within(const R a, const R b, const R epsilon = 0.001f) 10 : { 11 0 : return std::abs(a - b) < epsilon; 12 : } 13 : 14 : UTILS_EXPORT bool float_equals(float a, float b, float epsilon = 0.001f); 15 : 16 : UTILS_EXPORT bool double_equals(double a, double b, double epsilon = 0.001); 17 : } |
| Generated by: LCOV version 2.0-1 |