class

CArcDragVelocity

Module
Arc
Header
#include "Arc/Widgets/CArcScrollAnimator.h"
Namespace
Arcf

Public functions

ReturnsNameDescription
voidReset
voidAddSample
floatGetVelocity
floatGetReleaseVelocityThe 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.
doubleNowSeconds

Function details

Reset

C++
void Reset(float position, double timeSeconds)

AddSample

C++
void AddSample(float position, double timeSeconds)

GetVelocity

C++
float GetVelocity() const

GetReleaseVelocity

C++
float GetReleaseVelocity(double nowSeconds) const

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.

NowSeconds

C++
static double NowSeconds()
Generated from Arc/Widgets/CArcScrollAnimator.h via arc.json · Nov 5, 2026Version 1.0.0