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

◆ speed() [6/6]

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

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

Definition at line 689 of file Differential.hpp.

690{
691 return speed(to_history(samples), dt);
692}
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: