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

◆ heading_vector() [3/4]

glm::vec2 MayaFlux::Kinesis::heading_vector ( std::span< const glm::vec2 >  samples,
double  dt 
)
inlinenoexcept

Convenience overload of heading_vector(vec2) over a raw span, samples[0] newest.

Definition at line 695 of file Differential.hpp.

696{
697 return heading_vector(to_history(samples), dt);
698}
Memory::HistoryBuffer< T > to_history(std::span< const T > samples) noexcept
Build a HistoryBuffer<T> from a newest-first span.
glm::vec2 heading_vector(const Memory::HistoryBuffer< glm::vec2 > &history, double dt) noexcept
Unit direction of a vec2 first difference.

References heading_vector(), and to_history().

+ Here is the call graph for this function: