LCOV - code coverage report
Current view: top level - Utils - equals_within.h (source / functions) Coverage Total Hit
Test: OdbDesign Test Coverage Lines: 0.0 % 2 0
Test Date: 2026-11-19 04:56:22 Functions: 0.0 % 2 0
Legend: Lines: hit not hit

            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