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