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

◆ centroid() [2/7]

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

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

Definition at line 800 of file Differential.hpp.

801{
802 return centroid(to_history(samples), window);
803}
std::weak_ptr< Core::Window > window
Definition Picker.cpp:23
glm::vec2 centroid(const Memory::HistoryBuffer< glm::vec2 > &history, size_t window) noexcept
Mean position across a window.
Memory::HistoryBuffer< T > to_history(std::span< const T > samples) noexcept
Build a HistoryBuffer<T> from a newest-first span.

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

+ Here is the call graph for this function: