| 1 |
\input preamble.tex |
| 2 |
|
| 3 |
\def\fr{\displaystyle\frac} |
| 4 |
|
| 5 |
% --------------------------------------------------------------------------- |
| 6 |
\begin{document} |
| 7 |
\unitlength1.125cm |
| 8 |
|
| 9 |
\begin{center} |
| 10 |
{\Huge \bf{Ellipse Parameters}} |
| 11 |
\bigskip |
| 12 |
|
| 13 |
\begin{lapdf}(16,16)(-8,-11) |
| 14 |
\Lingrid(10)(1,1)(-8,8)(-11,5) |
| 15 |
\Setwidth(0.01) |
| 16 |
\Dash(1) |
| 17 |
\Polygon(-7.2,-3.2)(0,4)(7.2,-3.2)(-7.2,-3.2)(0,-10.4)(7.2,-3.2) \Stroke |
| 18 |
\Polygon(5.33,-1.33)(-5.33,-1.33)(0,-6.67)(5.33,-1.33) \Stroke |
| 19 |
\Polygon(4.5,-0.5)(-4.5,-0.5)(0,-5)(4.5,-0.5) \Stroke |
| 20 |
\Dash(0) |
| 21 |
\Setwidth(0.02) |
| 22 |
\Red |
| 23 |
\Rcurve(128)(-4,0,3)(0,4,2)(4,0,3) \Stroke |
| 24 |
\Rcurve(128)(-4,0,3)(0,4,-2)(4,0,3) \Stroke |
| 25 |
\Green |
| 26 |
\Rcurve(96)(-4,0,2)(0,4,1)(4,0,2) \Stroke |
| 27 |
\Rcurve(96)(-4,0,2)(0,4,-1)(4,0,2) \Stroke |
| 28 |
\Blue |
| 29 |
\Rcurve(64)(-4,0,3)(0,4,1)(4,0,3) \Stroke |
| 30 |
\Rcurve(64)(-4,0,3)(0,4,-1)(4,0,3) \Stroke |
| 31 |
\Point(1)(-4,0) |
| 32 |
\Point(1)(0,4) |
| 33 |
\Point(1)(4,0) |
| 34 |
\Point(1)(7.2,-3.2) |
| 35 |
\Point(1)(4,-6.4) |
| 36 |
\Point(1)(0,-10.4) |
| 37 |
\Point(1)(-4,-6.4) |
| 38 |
\Point(1)(-7.2,-3.2) |
| 39 |
\Point(1)(-5.33,-1.33) |
| 40 |
\Point(1)(-4,-2.67) |
| 41 |
\Point(1)(0,-6.67) |
| 42 |
\Point(1)(4,-2.67) |
| 43 |
\Point(1)(5.33,-1.33) |
| 44 |
\Point(1)(-4.5,-0.5) |
| 45 |
\Point(1)(-4,-1) |
| 46 |
\Point(1)(0,-5) |
| 47 |
\Point(1)(4,-1) |
| 48 |
\Point(1)(4.5,-0.5) |
| 49 |
\Point(0)(0,-3.2) |
| 50 |
\Point(0)(0,-1.33) |
| 51 |
\Point(0)(0,-0.5) |
| 52 |
\end{lapdf} |
| 53 |
{\large $w=2/3$, $w=1/2$, $w=1/3$} |
| 54 |
\end{center} |
| 55 |
\parskip0.2cm |
| 56 |
We know the center $M=(x_m,y_m)$ and the values of $a$ and $b$. We want |
| 57 |
to calculate the curve points $P_0$, $P_1$ and $P_2$ and the weight |
| 58 |
$w$ to draw the ellipse. With $r=\sqrt{a^2+b^2}$ we get: |
| 59 |
\begin{equation} |
| 60 |
P_0={{x_m-\fr{a^2}{r}}\choose{y_m+\fr{b^2}{r}}} \quad |
| 61 |
P_1={{xm}\choose{ym+r}} \quad |
| 62 |
P_2={{x_m+\fr{a^2}{r}}\choose{y_m+\fr{b^2}{r}}} \quad |
| 63 |
w_0=1 \quad |
| 64 |
w_1=\pm\fr{b}{r} \quad |
| 65 |
\end{equation} |
| 66 |
With these weights we can draw the ellipse with two segments. One segment |
| 67 |
uses the positive and the other the negative weight $w_1$. |
| 68 |
\end{document} |