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

◆ total_turning() [2/2]

float MayaFlux::Kinesis::total_turning ( std::span< const glm::vec2 >  samples,
size_t  window 
)
inlinenoexcept

Convenience overload of total_turning over a raw span of positions, samples[0] newest.

Definition at line 737 of file Differential.hpp.

738{
739 return total_turning(to_history(samples), window);
740}
Memory::HistoryBuffer< T > to_history(std::span< const T > samples) noexcept
Build a HistoryBuffer<T> from a newest-first span.
float total_turning(const Memory::HistoryBuffer< glm::vec2 > &history, size_t window) noexcept
Total absolute turning accumulated across a window.

References to_history(), and total_turning().

+ Here is the call graph for this function: