| 85 | }; |
| 86 | |
| 87 | inline 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 | |
| 98 | inline bool RelativeDifference(float x1, float x2, float min_x1, float diff) |
| 99 | { |