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

Function AbsoluteDifference

tests/osl/UnitTestOSL.cpp:87–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85};
86
87inline bool AbsoluteDifference(float x1, float x2, float diff)
88{
89 const float thisDiff = fabs(x2 - x1);
90 if (thisDiff > diff)
91 {
92 diff = thisDiff;
93 return true;
94 }
95 return false;
96}
97
98inline bool RelativeDifference(float x1, float x2, float min_x1, float diff)
99{

Callers 1

ComputeDiffFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected