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

◆ net_displacement() [3/3]

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

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

Definition at line 782 of file Differential.hpp.

783{
784 return net_displacement(to_history(samples), window);
785}
std::weak_ptr< Core::Window > window
Definition Picker.cpp:23
Memory::HistoryBuffer< T > to_history(std::span< const T > samples) noexcept
Build a HistoryBuffer<T> from a newest-first span.
float net_displacement(const Memory::HistoryBuffer< glm::vec2 > &history, size_t window) noexcept
Net displacement across the newest window positions.

References net_displacement(), to_history(), and window.

+ Here is the call graph for this function: