class
CArcDragVelocity
- Module
- Arc
- Header
#include "Arc/Widgets/CArcScrollAnimator.h"- Namespace
Arcf
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 Arc/Widgets/CArcScrollAnimator.h via arc.json · Nov 5, 2026Version 1.0.0