Equals


Overloaded template function to compare different data types using relative comparison. It checks whether arguments are equal.

You can find more information in comments below.

template<class TYPE, class FLOAT>
bool Equals(const TYPE a, const TYPE b, const FLOAT relative_tolerance); // Check whether the first argument equals to the second one. Uses relative comparison of float values
template<class TYPE>
bool Equals(const TYPE a, const TYPE b, const TYPE relative_tolerance); // Check whether the first argument equals to the second one. Uses relative comparison of float values
template<class TYPE, class FLOAT>
bool Equals(const TComplex<TYPE> &a, const TComplex<TYPE> &b, const FLOAT tolerance); // Check whether complex values are equal using relative comparison
template<class TYPE>
bool Equals(const TComplex<TYPE> &a, const TComplex<TYPE> &b, const TYPE tolerance); // Check whether complex values are equal using relative comparison
template<class TYPE, class FLOAT>
bool Equals(const TMat2<TYPE> &a, const TMat2<TYPE> &b, const FLOAT tolerance); // Check whether matrices are equal using relative comparison
template<class TYPE>
bool Equals(const TMat2<TYPE> &a, const TMat2<TYPE> &b, const TYPE tolerance); // Check whether matrices are equal using relative comparison
template<class TYPE, class FLOAT>
bool Equals(const TMat3<TYPE> &a, const TMat3<TYPE> &b, const FLOAT tolerance); // Check whether matrices are equal using relative comparison
template<class TYPE>
bool Equals(const TMat3<TYPE> &a, const TMat3<TYPE> &b, const TYPE tolerance); // Check whether matrices are equal using relative comparison
template<class TYPE, class FLOAT>
bool Equals(const TMat4<TYPE> &a, const TMat4<TYPE> &b, const FLOAT tolerance); // Check whether matrices are equal using relative comparison
template<class TYPE>
bool Equals(const TMat4<TYPE> &a, const TMat4<TYPE> &b, const TYPE tolerance); // Check whether matrices are equal using relative comparison
template<class TYPE, size_t ROWS, size_t COLUMNS, class FLOAT>
bool Equals(const TMatrix<TYPE, ROWS, COLUMNS> &a, const TMatrix<TYPE, ROWS, COLUMNS> &b, const FLOAT tolerance); // Check whether matrices are equal using relative comparison
template<class TYPE, size_t ROWS, size_t COLUMNS>
bool Equals(const TMatrix<TYPE, ROWS, COLUMNS> &a, const TMatrix<TYPE, ROWS, COLUMNS> &b, const TYPE tolerance); // Check whether matrices are equal using relative comparison
template<class TYPE, class FLOAT>
bool Equals(const TPoint<TYPE> &a, const TPoint<TYPE> &b, const FLOAT tolerance); // Check whether points are equal using relative comparison
template<class TYPE>
bool Equals(const TPoint<TYPE> &a, const TPoint<TYPE> &b, const TYPE tolerance); // Check whether points are equal using relative comparison
template<class TYPE, class FLOAT>
bool Equals(const TRect<TYPE> &a, const TRect<TYPE> &b, const FLOAT tolerance); // Check whether points are equal using relative comparison
template<class TYPE>
bool Equals(const TRect<TYPE> &a, const TRect<TYPE> &b, const TYPE tolerance); // Check whether points are equal using relative comparison
template<class TYPE, class FLOAT>
bool Equals(const TVec1<TYPE> &a, const TVec1<TYPE> &b, const FLOAT tolerance); // Check whether vectors are equal using relative comparison
template<class TYPE>
bool Equals(const TVec1<TYPE> &a, const TVec1<TYPE> &b, const TYPE tolerance); // Check whether vectors are equal using relative comparison
template<class TYPE, class FLOAT>
bool Equals(const TVec2<TYPE> &a, const TVec2<TYPE> &b, const FLOAT tolerance); // Check whether vectors are equal using relative comparison
template<class TYPE>
bool Equals(const TVec2<TYPE> &a, const TVec2<TYPE> &b, const TYPE tolerance); // Check whether vectors are equal using relative comparison
template<class TYPE, class FLOAT>
bool Equals(const TVec3<TYPE> &a, const TVec3<TYPE> &b, const FLOAT tolerance); // Check whether vectors are equal using relative comparison
template<class TYPE>
bool Equals(const TVec3<TYPE> &a, const TVec3<TYPE> &b, const TYPE tolerance); // Check whether vectors are equal using relative comparison
template<class TYPE, class FLOAT>
bool Equals(const TVec4<TYPE> &a, const TVec4<TYPE> &b, const FLOAT tolerance); // Check whether vectors are equal using relative comparison
template<class TYPE>
bool Equals(const TVec4<TYPE> &a, const TVec4<TYPE> &b, const TYPE tolerance); // Check whether vectors are equal using relative comparison
template<class TYPE, class FLOAT>
bool Equals(const TQuaternion<TYPE> &a, const TQuaternion<TYPE> &b, const FLOAT tolerance); // Check whether quaternions are equal using relative comparison
template<class TYPE>
bool Equals(const TQuaternion<TYPE> &a, const TQuaternion<TYPE> &b, const TYPE tolerance); // Check whether quaternions are equal using relative comparison
template<class TYPE, size_t CHANNELS, class FLOAT>
bool Equals(const TPixel<TYPE, CHANNELS> &a, const TPixel<TYPE, CHANNELS> &b, const FLOAT relative_tolerance); // Check whether pixels are equal using relative comparison
template<class TYPE, size_t CHANNELS = 4>
bool Equals(const TPixel<TYPE, CHANNELS> &a, const TPixel<TYPE, CHANNELS> &b, const TYPE relative_tolerance); // Check whether pixels are equal using relative comparison
template<class TYPE, class FLOAT>
bool Equals(const TPlane<TYPE> &a, const TPlane<TYPE> &b, const FLOAT tolerance); // Check whether planes are equal using relative comparison
template<class TYPE>
bool Equals(const TPlane<TYPE> &a, const TPlane<TYPE> &b, const TYPE tolerance); // Check whether planes are equal using relative comparison
template<class TYPE, class FLOAT>
bool Equals(const TRange<TYPE> &a, const TRange<TYPE> &b, const FLOAT relative_tolerance); // Check whether ranges are equal using relative comparison
template<class TYPE>
bool Equals(const TRange<TYPE> &a, const TRange<TYPE> &b, const TYPE relative_tolerance); // Check whether ranges are equal using relative comparison
template<class TYPE, class FLOAT, size_t SIZE, size_t ...Dimensions>
bool Equals(const TTensor<TYPE, SIZE, Dimensions...> &a, const TTensor<TYPE, SIZE, Dimensions...> &b, const FLOAT tolerance); // Check whether tensors are equal using relative comparison
template<class TYPE, size_t SIZE, size_t ...Dimensions>
bool Equals(const TTensor<TYPE, SIZE, Dimensions...> &a, const TTensor<TYPE, SIZE, Dimensions...> &b, const TYPE tolerance); // Check whether tensors are equal using relative comparison
Namespace: ntl
Include: NTL/Core/Utils.h (For non-object arguments)
NTL/Core/Complex.h (For TComplex arguments)
NTL/Core/Mat2.h (For TMat2 arguments)
NTL/Core/Mat3.h (For TMat3 arguments)
NTL/Core/Mat4.h (For TMat4 arguments)
NTL/Core/Matrix.h (For TMatrix arguments)
NTL/Core/Point.h (For TPoint arguments)
NTL/Core/Rect.h (For TRect arguments)
NTL/Core/Vec1.h (For TVec1 arguments)
NTL/Core/Vec2.h (For TVec2 arguments)
NTL/Core/Vec3.h (For TVec3 arguments)
NTL/Core/Vec4.h (For TVec4 arguments)
NTL/Core/Quaternion.h (For TQuaternion arguments)
NTL/Core/Pixel.h (For TPixel arguments)
NTL/Core/Plane.h (For TPlane arguments)
NTL/Core/Range.h (For TRange arguments)
NTL/Core/Tensor.h (For TTensor arguments)