0
$\begingroup$

I am looking to find $n$ number of points around an ellipse. They don't necessarily have to be equidistant.

Similar to what this forum is asking:

I found several answers that are similar but I am having a hard time expressing it in code.

  • 0
    Why not evaluate $(a\cos\,t,b\sin\,t)$ at $n$ equispaced values of $t$?2012-08-14

1 Answers 1

1

You can take the points $P_k=(x_k,y_k)$, with $ x_k=a\cos(2k\pi/n)\\ y_k=b\sin(2k\pi/n) $ for $k=0,\ldots,n-1$, and where $a,b$ are the semi-wight and the semi-heigth, respectively.