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

◆ curvature_from_history() [2/2]

float MayaFlux::Kinesis::curvature_from_history ( std::span< const glm::vec2 >  samples,
double  dt,
float  min_speed = 1e-3F 
)
inlinenoexcept

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

Definition at line 713 of file Differential.hpp.

714{
715 return curvature_from_history(to_history(samples), dt, min_speed);
716}
float curvature_from_history(const Memory::HistoryBuffer< glm::vec2 > &history, double dt, float min_speed=1e-3F) noexcept
Signed curvature computed directly from a position HistoryBuffer.
Memory::HistoryBuffer< T > to_history(std::span< const T > samples) noexcept
Build a HistoryBuffer<T> from a newest-first span.

References curvature_from_history(), and to_history().

+ Here is the call graph for this function: