File interpolation.hxx

Functions

template<int>
int cast(double v)
template<long int>
long int cast(double v)
template<typename T>
T cast(double v)
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, 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, 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 iteration_start, long int iteration_now, 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.