Overloaded template function to compare different data types. It checks whether arguments are equal.
You can find more information in comments below.
template<class TYPE>
constexpr bool IsEqual(const TYPE a, const TYPE b); // Check whether arguments are equal
template<class TYPE>
constexpr bool IsEqual(const TYPE a, const TYPE b, const TYPE tolerance = Tolerance<TYPE>); // Check whether arguments are equal. For float values. Uses absolute comparison
template<lt;class TYPE, size_t CHANNELS = 4>>
bool IsEqual(const TBitmap<lt;TYPE, CHANNELS>gt; &a, const TBitmap<lt;TYPE, CHANNELS>gt; &b); // Compare if bitmaps are equal
template<lt;class TYPE, size_t CHANNELS = 4>>
bool IsEqual(const TBitmap<<TYPE, CHANNELS>gt; &a, const TBitmap<<TYPE, CHANNELS>gt; &b, const TYPE tolerance = Tolerance<<TYPE>gt;); // Compare if bitmaps are equal(for float data types)
template<class TYPE>
bool IsEqual(const TComplex<TYPE> &a, const TComplex<TYPE> &b); // Compare whether complex values are equal
template<class TYPE>
bool IsEqual(const TComplex<TYPE> &a, const TComplex<TYPE> &b, const TYPE tolerance = Tolerance<TYPE>) // Compare whether complex values are equal. For float data type
template<class TYPE>
bool IsEqual(const TMat2<TYPE> &a, const TMat2<TYPE> &b); // Compare whether matrices are equal
template<class TYPE>
bool IsEqual(const TMat2<TYPE> &a, const TMat2<TYPE> &b, const TYPE tolerance = Tolerance<TYPE>); // Compare whether matrices are equal
template<class TYPE>
bool IsEqual(const TMat3<TYPE> &a, const TMat3<TYPE> &b); // Compare whether matrices are equal
template<class TYPE>
bool IsEqual(const TMat3<TYPE> &a, const TMat3<TYPE> &b, const TYPE tolerance = Tolerance<TYPE>); // Compare whether matrices are equal
template<class TYPE>
bool IsEqual(const TMat4<TYPE> &a, const TMat4<TYPE> &b); // Compare whether matrices are equal
template<class TYPE>
bool IsEqual(const TMat4<TYPE> &a, const TMat4<TYPE> &b, const TYPE tolerance = Tolerance<TYPE>); // Compare whether matrices are equal
template<class TYPE, size_t ROWS, size_t COLUMNS>
bool IsEqual(const TMatrix<TYPE, ROWS, COLUMNS> &a, const TMatrix<TYPE, ROWS, COLUMNS> &b); // Compare whether matrices are equal
template<class TYPE, size_t ROWS, size_t COLUMNS>
bool IsEqual(const TMatrix<TYPE, ROWS, COLUMNS> &a, const TMatrix<TYPE, ROWS, COLUMNS> &b, const TYPE tolerance = Tolerance<TYPE>); // Compare whether matrices are equal
template<class TYPE>
bool IsEqual(const TPoint<TYPE> &a, const TPoint<TYPE> &b); // Compare whether points are equal
template<class TYPE>
bool IsEqual(const TPoint<TYPE> &a, const TPoint<TYPE> &b, const TYPE tolerance = Tolerance<TYPE>); // Compare whether points are equal
template<class TYPE>
bool IsEqual(const TRect<TYPE> &a, const TRect<TYPE> &b); // Compare whether rects are equal
template<class TYPE>
bool IsEqual(const TRect<TYPE> &a, const TRect<TYPE> &b, const TYPE tolerance = Tolerance<TYPE>); // Compare whether rects are equal
template<class TYPE>
bool IsEqual(const TVec1<TYPE> &a, const TVec1<TYPE> &b); // Compare whether vectors are equal
template<class TYPE>
bool IsEqual(const TVec1<TYPE> &a, const TVec1<TYPE> &b, const TYPE tolerance = Tolerance<TYPE>); // Compare whether vectors are equal
template<class TYPE>
bool IsEqual(const TVec2<TYPE> &a, const TVec2<TYPE> &b); // Compare whether vectors are equal
template<class TYPE>
bool IsEqual(const TVec2<TYPE> &a, const TVec2<TYPE> &b, const TYPE tolerance = Tolerance<TYPE>); // Compare whether vectors are equal
template<class TYPE>
bool IsEqual(const TVec3<TYPE> &a, const TVec3<TYPE> &b); // Compare whether vectors are equal
template<class TYPE>
bool IsEqual(const TVec3<TYPE> &a, const TVec3<TYPE> &b, const TYPE tolerance = Tolerance<TYPE>); // Compare whether vectors are equal
template<class TYPE>
bool IsEqual(const TVec4<TYPE> &a, const TVec4<TYPE> &b); // Compare whether vectors are equal
template<class TYPE>
bool IsEqual(const TVec4<TYPE> &a, const TVec4<TYPE> &b, const TYPE tolerance = Tolerance<TYPE>); // Compare whether vectors are equal
template<class TYPE>
bool IsEqual(const TQuaternion<TYPE> &a, const TQuaternion<TYPE> &b); // Compare whether quaternions are equal
template<class TYPE>
bool IsEqual(const TQuaternion<TYPE> &a, const TQuaternion<TYPE> &b, const TYPE tolerance = Tolerance<TYPE>); // Compare whether quaternions are equal
template<class TYPE, size_t CHANNELS = 4>
bool IsEqual(const TPixel<TYPE, CHANNELS> &a, const TPixel<TYPE, CHANNELS> &b); // Compare whether pixels are equal
template<class TYPE, size_t CHANNELS = 4>
bool IsEqual(const TPixel<TYPE, CHANNELS> &a, const TPixel<TYPE, CHANNELS> &b, const TYPE tolerance = Tolerance<TYPE>); // Compare whether pixels are equal
template<class TYPE>
bool IsEqual(const TPlane<TYPE> &a, const TPlane<TYPE> &b); // Compare whether planes are equal
template<class TYPE>
bool IsEqual(const TPlane<TYPE> &a, const TPlane<TYPE> &b, const TYPE tolerance = Tolerance<TYPE>); // Compare whether planes are equal
template<class TYPE>
bool IsEqual(const TRange<TYPE> &a, const TRange<TYPE> &b); // Compare whether ranges are equal
template<class TYPE>
bool IsEqual(const TRange<TYPE> &a, const TRange<TYPE> &b, const TYPE tolerance = Tolerance<TYPE>); // Compare whether ranges are equal
template<class TYPE, size_t SIZE, size_t ...Dimensions>
bool IsEqual(const TTensor<TYPE, SIZE, Dimensions...> &a, const TTensor<TYPE, SIZE, Dimensions...> &b); // Compare whether tensors are equal
template<class TYPE, size_t SIZE, size_t ...Dimensions>
bool IsEqual(const TTensor<TYPE, SIZE, Dimensions...> &a, const TTensor<TYPE, SIZE, Dimensions...> &b, const TYPE tolerance = Tolerance<TYPE>); // Compare whether tensors are equal
Namespace: | ntl |
Include: |
NTL/Core/Utils.h (For non-object arguments) NTL/Core/Bitmap.h (For TBitmap 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) |