MCPcopy Create free account
hub / github.com/MyGUI/mygui / linearMoveFunction

Function linearMoveFunction

MyGUIEngine/src/MyGUI_ActionController.cpp:30–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,

Callers 3

inertionalMoveFunctionFunction · 0.85
acceleratedMoveFunctionFunction · 0.85
jumpMoveFunctionFunction · 0.85

Calls 1

setMethod · 0.45

Tested by

no test coverage detected