Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
41
template<typename T>
42
inline bool EqualWithAbsError (T x1, T x2, T e)
43
{
44
return ((x1 > x2)? x1 - x2: x2 - x1) <= e;
45
}
46
47
template<typename T>
48
inline bool EqualWithRelError (T x1, T x2, T e)
Callers
9
isIdentityTransform
Function · 0.85
getReferenceSpaceFromSRGBSpace
Function · 0.85
findEquivalentColorspace
Function · 0.85
isColorSpaceLinear
Method · 0.85
operator==
Method · 0.85
isIdentity
Method · 0.85
hasAlpha
Method · 0.85
CheckFloat
Function · 0.85
OCIO_ADD_TEST
Function · 0.85
Calls
no outgoing calls
Tested by
2
CheckFloat
Function · 0.68
OCIO_ADD_TEST
Function · 0.68