MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / EqualWithAbsError

Function EqualWithAbsError

src/OpenColorIO/MathUtils.h:42–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40
41template<typename T>
42inline bool EqualWithAbsError (T x1, T x2, T e)
43{
44 return ((x1 > x2)? x1 - x2: x2 - x1) <= e;
45}
46
47template<typename T>
48inline bool EqualWithRelError (T x1, T x2, T e)

Callers 9

isIdentityTransformFunction · 0.85
findEquivalentColorspaceFunction · 0.85
isColorSpaceLinearMethod · 0.85
operator==Method · 0.85
isIdentityMethod · 0.85
hasAlphaMethod · 0.85
CheckFloatFunction · 0.85
OCIO_ADD_TESTFunction · 0.85

Calls

no outgoing calls

Tested by 2

CheckFloatFunction · 0.68
OCIO_ADD_TESTFunction · 0.68