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

◆ speed() [3/6]

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

Magnitude of a vec3 first difference.

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

Definition at line 296 of file Differential.hpp.

297{
298 return glm::length(velocity(history, dt));
299}
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: