36
36
std::chrono::high_resolution_clock::time_point interpolated_touch_time)
38
38
assert(interpolated_touch_time > touch_start_time);
40
40
double alpha = (interpolated_touch_time.time_since_epoch().count() - touch_start_time.time_since_epoch().count()) / static_cast<double>((touch_end_time.time_since_epoch().count() - touch_start_time.time_since_epoch().count()));
42
42
auto ix = touch_start.x.as_int() + (touch_end.x.as_int()-touch_start.x.as_int())*alpha;