File interpolation.hpp

namespace o80

Functions

template<typename T>
bool finished(const o80::TimePoint &start, const o80::TimePoint &now, const T &start_state, const T &current_state, const T &target_state, const o80::Speed &speed)
template<typename T>
T intermediate_state(const o80::TimePoint &start, const o80::TimePoint &now, const T &start_state, const T &current_state, const T &target_state, const o80::Speed &speed)

Interpolate between start and target state so that the state changes according to the provided speed.

template<typename T>
T intermediate_state(const o80::TimePoint &start, const o80::TimePoint &now, const T &start_state, const T &current_state, const T &target_state, const o80::Duration_us &duration)

Interpolate between start and target state so that the target state is reached in the specified duration.

template<typename T>
T intermediate_state(long int start_iteration, long int current_iteration, const T &start_state, const T &current_state, const T &target_state, const o80::Iteration &iteration)

Interpolate between start and target state so that the target state is reached at the specified iteration.