| 28 | } |
| 29 | |
| 30 | void linearMoveFunction(const IntCoord& _startRect, const IntCoord& _destRect, IntCoord& _result, float _k) |
| 31 | { |
| 32 | _result.set( |
| 33 | _startRect.left - int(float(_startRect.left - _destRect.left) * _k), |
| 34 | _startRect.top - int(float(_startRect.top - _destRect.top) * _k), |
| 35 | _startRect.width - int(float(_startRect.width - _destRect.width) * _k), |
| 36 | _startRect.height - int(float(_startRect.height - _destRect.height) * _k)); |
| 37 | } |
| 38 | |
| 39 | void inertionalMoveFunction( |
| 40 | const IntCoord& _startRect, |
no test coverage detected