Check whether specified values are equal with specified tolerance.
constexpr bool IsEqual(const float a, const float b, const float tolerance = Tolerance);
constexpr bool IsEqual(const double a, const double b, const double tolerance = dTolerance);
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 Vector &a, const Vector &b, const float tolerance = Tolerance);
bool IsEqual(const Matrix &a, const Matrix &b, const float tolerance = Tolerance);
bool IsEqual(const TRANSFORM &a, const TRANSFORM &b, const float tolerance = Tolerance);
bool IsEqual(const std::vector<float> &a, const std::vector<float> &b, const float tolerance = Tolerance);
Namespace: | nitisa |
Include: |
Nitisa/Core/Math/Utils.h (For float and double arguments) Nitisa/Core/Math/PointFUtils.h (For PointF arguments) Nitisa/Core/Math/PointDUtils.h (For PointD arguments) Nitisa/Core/Math/RectFUtils.h (For RectF arguments) Nitisa/Core/Math/RectDUtils.h (For RectD arguments) Nitisa/Core/Math/VectorUtils.h (For Vector arguments) Nitisa/Core/Math/MatrixUtils.h (For Matrix arguments) Nitisa/Core/Utils.h (For TRANSFORM and float array arguments) |