A class encapsulating both relative and absolute tolerances for use in floating-point comparisons. More...
#include <juce_MathsFunctions.h>
Public Member Functions | |
Tolerance ()=default | |
Tolerance | withAbsolute (Type newAbsolute) |
Returns a copy of this Tolerance object with a new absolute tolerance. | |
Tolerance | withRelative (Type newRelative) |
Returns a copy of this Tolerance object with a new relative tolerance. | |
Type | getAbsolute () const |
Type | getRelative () const |
A class encapsulating both relative and absolute tolerances for use in floating-point comparisons.
|
default |
Returns a copy of this Tolerance object with a new absolute tolerance.
If you just need a Tolerance object with an absolute tolerance, it might be worth using the absoluteTolerance() function.
References withMember().
Returns a copy of this Tolerance object with a new relative tolerance.
If you just need a Tolerance object with a relative tolerance, it might be worth using the relativeTolerance() function.
References withMember().
|
nodiscard |
|
nodiscard |