| 291 | //! @todo: this should be moved into a maths header |
| 292 | template<class T> |
| 293 | void roundAt( T& value, const T& where, const T& step_size ) |
| 294 | { |
| 295 | if( qAbs<float>( value - where ) |
| 296 | < typeInfo<float>::minEps() * qAbs<float>( step_size ) ) |
| 297 | { |
| 298 | value = where; |
| 299 | } |
| 300 | } |
| 301 | |
| 302 | |
| 303 |
no outgoing calls
no test coverage detected