Mjolnir Core
Core functionality of the Mjolnir API
Functions | Variables
is_close.h File Reference

Contains comparison functions with tolerances. More...

#include "mjolnir/core/definitions.h"
#include <cmath>
Include dependency graph for is_close.h:

Go to the source code of this file.

Functions

template<typename T_Type >
requires Number< T_Type > auto is_close_abs (T_Type lhs, T_Type rhs, T_Type tolerance=default_tolerance_abs< T_Type >) noexcept -> bool
 Return ´true´ if the difference between lhs and rhs is inside an absolute tolerance and false otherwise. More...
 

Variables

template<typename T_Type >
constexpr T_Type default_tolerance_abs = static_cast<T_Type>(1E-6)
 The default absolute tolerance. More...
 

Detailed Description

Contains comparison functions with tolerances.

is_close.h