MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ speed() [2/6]

float MayaFlux::Kinesis::speed ( const Memory::HistoryBuffer< glm::vec2 > &  history,
double  dt 
)
inlinenoexcept

Magnitude of a vec2 first difference.

Parameters
historyBuffer with capacity >= 2
dtElapsed time between samples 0 and 1
Returns
Euclidean speed

Definition at line 285 of file Differential.hpp.

286{
287 return glm::length(velocity(history, dt));
288}
T velocity(const Memory::HistoryBuffer< T > &history, double dt) noexcept
First difference: rate of change of position.

References velocity().

+ Here is the call graph for this function: