generate curve from three points in parabola way