This is not a question, but an answer,
An answer to any one who wants to move an object from point A to point B in a curved way,
An answer to any one who wants to plot a curve from point A to point B

(startX,startY) is the starting point coordinate,
(endX,endY) is the ending point coordinate,

and (bezierX,bezierY) is the control point which governs the curvature of the curve,
think in this manner, if this point is farther away, then the curve is more steep..
if this point is closer then the curve is less steep.