#include #include "utils.h" float move_to(float current, float target, float step) { if (step < 0) return move_to(current, target, -step); if (current > target) return fmaxf(current-step, target); else if (current < target) return fminf(current+step, target); return current; }