Shown from Pic.1 is a example sine curve about my question. The precondition is there are two points, such as P1(x1, y1), P2(x2, y2), and I want to generate a sine curve between these two points.
The general equation of a sine curve is y = Asin(wx + φ) + b, there is no problem to get the w, φ and b from those two points, but I have no idea how to get the amplitude of the sine curve just shown in Pic.1. Is there anyone who is familiar with this? please give me some clue. Thank you.
PS:The curve shown in Pic.1 may not be a sine curve, but I just can't figure out other curves with this shape. So if you think it's not a sine curve, please give me you equation of this curve.
--------UPDATE---------
There is an additional constraint, please see Pic.2, the generated sine curve should not go over the two black lines whether the distance between the two given points is long or short, and the black lines should be the tangent line of the sine curve. Is this constraint helpful to get the amplitude?
