MayaFlux 1.0.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 770 of file Differential.hpp.

771{
772 return curvature_from_history(to_history(samples), dt, min_speed);
773}
float min_speed
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(), min_speed, and to_history().

+ Here is the call graph for this function: