Разные правки
This commit is contained in:
@ -14,7 +14,7 @@ namespace myx {
|
||||
namespace math {
|
||||
|
||||
MYXLIB_INLINE bool almost_equal_relative( const float a, const float b,
|
||||
const float maxRelDiff )
|
||||
const float maxRelDiff )
|
||||
{
|
||||
float diff = fabsf( a - b );
|
||||
float aN = fabsf( a );
|
||||
@ -30,7 +30,7 @@ MYXLIB_INLINE bool almost_equal_relative( const float a, const float b,
|
||||
|
||||
|
||||
MYXLIB_INLINE bool almost_equal_relative( const double a, const double b,
|
||||
const double maxRelDiff )
|
||||
const double maxRelDiff )
|
||||
{
|
||||
double diff = fabs( a - b );
|
||||
double aN = fabs( a );
|
||||
@ -48,4 +48,4 @@ MYXLIB_INLINE bool almost_equal_relative( const double a, const double b,
|
||||
|
||||
} // namespace myx
|
||||
|
||||
#endif
|
||||
#endif // ifndef MYX_MATH_ALMOST_EQUAL_RELATIVE_INL_HPP_
|
||||
|
Reference in New Issue
Block a user