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

◆ path_length() [2/2]

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

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

Definition at line 719 of file Differential.hpp.

720{
721 return path_length(to_history(samples), window);
722}
float path_length(const Memory::HistoryBuffer< glm::vec2 > &history, size_t window) noexcept
Path length accumulated across the newest window positions.
Memory::HistoryBuffer< T > to_history(std::span< const T > samples) noexcept
Build a HistoryBuffer<T> from a newest-first span.

References path_length(), and to_history().

+ Here is the call graph for this function: