Основная часть рефакторинга закончена
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user