Основная часть рефакторинга закончена

This commit is contained in:
2020-04-22 20:59:39 +03:00
parent d6143953f6
commit f550594b85
33 changed files with 144 additions and 41 deletions

View File

@ -1,3 +1,8 @@
#ifndef MYX_MATH_ALMOST_EQUAL_RELATIVE_INL_HPP_
#define MYX_MATH_ALMOST_EQUAL_RELATIVE_INL_HPP_
#pragma once
#ifndef MYXLIB_HEADER_ONLY
#include <myx/math/almost_equal_relative.hpp>
#endif
@ -8,7 +13,7 @@ namespace myx {
namespace math {
bool almost_equal_relative( const float a, const float b,
MYXLIB_INLINE bool almost_equal_relative( const float a, const float b,
const float maxRelDiff )
{
float diff = fabsf( a - b );
@ -24,7 +29,7 @@ bool almost_equal_relative( const float a, const float b,
}
bool almost_equal_relative( const double a, const double b,
MYXLIB_INLINE bool almost_equal_relative( const double a, const double b,
const double maxRelDiff )
{
double diff = fabs( a - b );
@ -42,3 +47,5 @@ bool almost_equal_relative( const double a, const double b,
} // namespace math
} // namespace myx
#endif