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

◆ heading_vector() [4/4]

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

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

Definition at line 701 of file Differential.hpp.

702{
703 return heading_vector(to_history(samples), dt);
704}
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: