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

◆ speed() [5/6]

float MayaFlux::Kinesis::speed ( std::span< const glm::vec2 >  samples,
double  dt 
)
inlinenoexcept

Convenience overload of speed(vec2) over a raw span, samples[0] newest.

Definition at line 683 of file Differential.hpp.

684{
685 return speed(to_history(samples), dt);
686}
double speed(const Memory::HistoryBuffer< double > &history, double dt) noexcept
Absolute value of a scalar first difference.
Memory::HistoryBuffer< T > to_history(std::span< const T > samples) noexcept
Build a HistoryBuffer<T> from a newest-first span.

References speed(), and to_history().

+ Here is the call graph for this function: