devela::_dep::kira

Function interpolate_frame

pub fn interpolate_frame(
    previous: Frame,
    current: Frame,
    next_1: Frame,
    next_2: Frame,
    fraction: f32,
) -> Frame
Available on crate feature dep_kira only.
Expand description

Given a previous frame, a current frame, the two next frames, and a position x from 0.0 to 1.0 between the current frame and next frame, get an approximated frame.