| 50 | /** Function for ControllerPosition per frame action : Move with accelerated speed a bit farther than necessary and then return it back */ |
| 51 | template<int N> |
| 52 | inline void jumpMoveFunction( |
| 53 | const IntCoord& _startRect, |
| 54 | const IntCoord& _destRect, |
| 55 | IntCoord& _result, |
| 56 | float _current_time) |
| 57 | { |
| 58 | float k = std::pow(_current_time, 2.0f) * (-2 - N / 10.f) + _current_time * (3 + N / 10.f); |
| 59 | linearMoveFunction(_startRect, _destRect, _result, k); |
| 60 | } |
| 61 | |
| 62 | /** Function for ControllerPosition per frame action : Start with zero speed increasing half time and then decreasing to zero */ |
| 63 | void MYGUI_EXPORT inertionalMoveFunction( |
nothing calls this directly
no test coverage detected