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

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_AND_ABS_INL_HPP_
#define MYX_MATH_ALMOST_EQUAL_RELATIVE_AND_ABS_INL_HPP_
#pragma once
#ifndef MYXLIB_HEADER_ONLY
#include <myx/math/almost_equal_relative_and_abs.hpp>
#endif
@ -8,7 +13,7 @@ namespace myx {
namespace math {
bool almost_equal_relative_and_abs( const float a, const float b,
MYXLIB_INLINE bool almost_equal_relative_and_abs( const float a, const float b,
const float maxAbsDiff, const float maxRelDiff )
{
// Check if the numbers are really close -- needed
@ -31,7 +36,7 @@ bool almost_equal_relative_and_abs( const float a, const float b,
}
bool almost_equal_relative_and_abs( const double a, const double b,
MYXLIB_INLINE bool almost_equal_relative_and_abs( const double a, const double b,
const double maxAbsDiff, const double maxRelDiff )
{
// Check if the numbers are really close -- needed
@ -56,3 +61,5 @@ bool almost_equal_relative_and_abs( const double a, const double b,
} // namespace math
} // namespace myx
#endif