class
CMiriDragVelocity
- Module
- Miri
- Header
#include "Miri/Widgets/CMiriScrollAnimator.h"- Namespace
Miri
Public functions
| Returns | Name | Description |
|---|---|---|
void | Reset | |
void | AddSample | |
float | GetVelocity | |
float | GetReleaseVelocity | The velocity a release at nowSeconds should fling with: zero when the pointer has been still for a beat, because a drag that stopped before letting go must not take off. |
double | NowSeconds |
Function details
Reset
C++
void Reset(float position, double timeSeconds)AddSample
C++
void AddSample(float position, double timeSeconds)GetVelocity
C++
float GetVelocity() constGetReleaseVelocity
C++
float GetReleaseVelocity(double nowSeconds) constThe velocity a release at nowSeconds should fling with: zero when the pointer has been still for a beat, because a drag that stopped before letting go must not take off.
NowSeconds
C++
static double NowSeconds()Generated from Miri/Widgets/CMiriScrollAnimator.h via miri.json · Dec 5, 2026Version 1.1.0