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