| 140 | } |
| 141 | |
| 142 | template <typename T> T ABS(const T x) // define ABS(x) |
| 143 | { |
| 144 | // portable across compilers unlike "abs" |
| 145 | return x < 0? -x: x; |
| 146 | } |
| 147 | |
| 148 | template <typename T> T Clamp(const T& x, const T& min, const T& max) |
| 149 | { |
no outgoing calls
no test coverage detected