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

◆ straightness() [3/3]

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

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

Definition at line 788 of file Differential.hpp.

789{
790 return straightness(to_history(samples), window);
791}
std::weak_ptr< Core::Window > window
Definition Picker.cpp:23
float straightness(const Memory::HistoryBuffer< glm::vec2 > &history, size_t window) noexcept
Straightness of a path over a window, 1.0 is a straight line.
Memory::HistoryBuffer< T > to_history(std::span< const T > samples) noexcept
Build a HistoryBuffer<T> from a newest-first span.

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

+ Here is the call graph for this function: