Function interpolate

Source
pub fn interpolate(p1: Point, p2: Point, x: f32) -> f32