Content


NTL
Core
IsEqual

IsEqual



Check whether specified values are equal with specified tolerance.

For float and double arguments use ntl::IsEqual function.

constexpr bool IsEqual(const PointF &a, const PointF &b, const float tolerance = Tolerance);
constexpr bool IsEqual(const PointD &a, const PointD &b, const double tolerance = dTolerance);
constexpr bool IsEqual(const RectF &a, const RectF &b, const float tolerance = Tolerance);
constexpr bool IsEqual(const RectD &a, const RectD &b, const double tolerance = dTolerance);
bool IsEqual(const Color1D &a, const Color1D &b, const float tolerance = ntl::Tolerance<float>);
bool IsEqual(const FloatArray &a, const FloatArray &b, const float tolerance = Tolerance);
bool IsEqual(const Transform &a, const Transform &b, const float tolerance = Tolerance);
bool IsEqual(const Vector &a, const Vector &b, const float tolerance = Tolerance);
Namespace: nitisa
Include: Nitisa/Math/PointD.h (For PointD arguments)
Nitisa/Math/PointF.h (For PointF arguments)
Nitisa/Math/RectD.h (For RectD arguments)
Nitisa/Math/RectF.h (For RectF arguments)
Nitisa/Math/FloatArray.h (For FloatArray arguments)
Nitisa/Math/Transform.h (For Transform arguments)
Nitisa/Image/Color1D.h (For Color1D arguments)