title: How to make Bézier curve align sphere surface?
body: <p>I am trying to connect any 2 points on sphere surface with quartic Bézier curve in such way that every point of a curve are very close to the surface. I saw this <a href="https://stackoverflow.com/a/27863181/6505421">solution</a>, but it works only for cubic curves and only in the case when given 2 points have the same latitude or longitude - <a href="https://i.imgur.com/INo8T6F.png" rel="nofollow noreferrer">example A</a>. 
  I have 2 questions:</p>
  
  <p>1) In other cases - <a href="https://i.imgur.com/tdVk9Rw.png" rel="nofollow noreferrer">example B</a> this solution doesn't work and I feel like control points vectors lack power and I want any curve be spherical like in example A. So what is a right way of calculating control points vectors for cubic Bézier curve to align sphere surface.</p>
  
  <p>2) If question 1 is solvable - how do I randomize middle control point in quartic Bézier curve in order to achieve unique curve every time I generate it like in <a href="https://i.imgur.com/nhtOSeG.png" rel="nofollow noreferrer">example C</a></p>
  
  <p>Thank you!</p>
  
  <p>EDIT: question 2 is solved by the <a href="https://stackoverflow.com/a/27863181/6505421">@Kpym solution</a>.</p>