Currently I have the following rust function:
fn out_cubic(t: f32, begin: f32, change: f32, duration: f32) -> f32