#include <motionmanager.h>
template<typename T>
class KWin::Motion< T >
Definition at line 20 of file motionmanager.h.
◆ Motion() [1/2]
template<typename T >
KWin::Motion< T >::Motion |
( |
T | initial, |
|
|
double | strength, |
|
|
double | smoothness ) |
|
explicit |
Creates a new motion object. "Strength" is the amount of acceleration that is applied to the object when the target changes and "smoothness" relates to how fast the object can change its direction and speed.
Definition at line 311 of file motionmanager.h.
◆ Motion() [2/2]
Creates an exact copy of another motion object, including position, target and velocity.
Definition at line 322 of file motionmanager.h.
◆ ~Motion()
◆ calculate()
Calculates the new position if not at the target. Called once per frame only.
Definition at line 338 of file motionmanager.h.
◆ distance()
The distance between the current position and the target.
Definition at line 87 of file motionmanager.h.
◆ finish()
Place the object on top of the target immediately, bypassing all movement calculation.
Definition at line 355 of file motionmanager.h.
◆ setSmoothness()
template<typename T >
void KWin::Motion< T >::setSmoothness |
( |
const double | smoothness | ) |
|
|
inline |
◆ setStrength()
template<typename T >
void KWin::Motion< T >::setStrength |
( |
const double | strength | ) |
|
|
inline |
◆ setTarget()
◆ setValue()
◆ setVelocity()
◆ smoothness()
◆ startValue()
◆ strength()
◆ target()
◆ value()
◆ velocity()
The documentation for this class was generated from the following file: