Problem in short: The ellipse-arc should lie around Z and should start and end at the brown lines...
I want to draw circle-arcs and ellipse-arcs around a center-point.
So I use the syntax (TikZ-manual 2.10, page 36)
\draw[]([shift=(\wStart:\r)]Z) arc[start angle=\wStart, end angle=\wEnd, radius=\r];
with defined values \wStart, \wEnd, \r and a middlepoint-coordinate Z (which is not necessarily (0,0)) for circle-arcs and this works
For ellipse-arcs I use the syntax written in the TikZ-manual 2.10, page 37
\draw[red] ([shift=(\wStart:\rx)]Z) arc [start angle=\wStart, end angle=\wEnd, x radius=\rx, y radius=\ry];
in the following MWE.
But it seems my "center-shift" is wrong or it does not work (and maybe (?) start- and end-angle seems to be not correct).
What do I have to do?
BTW: I saw this thread (do not get the correct result with his methode), but I would like to fix the TikZ-syntax.
The ellipse-arc should start and end at the brown lines...
\documentclass[tikz, margin=3mm]{standalone}
\usepackage{tikz}
\usetikzlibrary{backgrounds}
\begin{document}
\begin{tikzpicture}[gridded]
% Center
\coordinate[label=below:Z] (Z) at (0,0);
\fill[] (Z) circle[radius=2pt];
% Values ===============
\def\rx{1.75}
\def\ry{1}
\def\r{\rx}
\def\wStart{20}
\def\wEnd{315}
% ====================
% Help lines
\draw[brown] (Z) -- (\wStart:\r);
\draw[brown] (Z) -- (\wEnd:\r);
% Full circle and ellipse
\draw[] (Z) circle[radius=\r];
\draw[] (Z) circle[x radius=\rx, y radius=\ry];
% cirlce arc
\draw[blue] ([shift=(\wStart:\r)]Z) arc [start angle=\wStart, end angle=\wEnd, radius=\r] node[near start]{good};
% ellipse arc
\draw[red] ([shift=(\wStart:\rx)]Z) arc [start angle=\wStart, end angle=\wEnd, x radius=\rx, y radius=\ry] node[near start]{bad};
\end{tikzpicture}
\end{document}







(α:rx and ry)isn't on the line from the origin to(α:Rx). You're going to have to find the point and the angle mathematically or letintersections/spath3find it for you. – Qrrbrbirlbel Dec 30 '23 at 11:45