我想在PGF/TikZ中显示一个球体来说明大圆的想法。如何查找PGF/TikZ中的椭圆交点
我现在的结果的代码是:
\begin{tikzpicture}
\tikzfading[name=fade right,
left color=transparent!20,
right color=transparent!90]
\tikzfading[name=fade out,
inner color=transparent!100,
outer color=transparent!10]
\tikzfading[name=fade right gc,
left color=transparent!0,
right color=transparent!70]
\draw [<->, dashed] (0,-5) -- (0,5); % y-axis
\draw [->, dashed] (0, 0) -- (20:5); % x-axis
\draw [->, dashed] (0, 0) -- (200:5); % x-axis
\draw [->, dashed] (0, 0) -- (340:5); % z-axis
\draw [->, dashed] (0, 0) -- (160:5); % z-axis
\fill [color=cyan, opacity=0.15, path fading=fade out] (0,0) circle (4cm); % bounding circle
\fill [color=cyan, opacity=0.25, path fading=fade right, fading angle=90] (0,0) ellipse (4cm and 1cm); % x-y-axis area
% great circle 1
\draw [rotate=-40, color=red, path fading=fade right gc, fading angle=40] (0,0) ellipse (4cm and 1cm);
% great circle 2
\draw[rotate=5, color=red, path fading=fade right gc, fading angle=5] (0,0) ellipse (1.5cm and 4cm);
\end{tikzpicture}
我如何
- 找到两个红色椭圆相交的两个点(评论道大圆1和2),
- 找到一条线(起源于中心(0,0))与一个椭圆的交点,并在那里放置一个小圆或矩形?
放置一个小圆圈或矩形不存在问题。 非常感谢!
感谢您的详细解答。据我所知,我需要从CVS获得最新的开发者版本,因为intersection不包含在“regular”pgf-2.00.tar.gz中。由于我在安装时遇到了一些问题,因此我会尽快回复。 – user327684 2010-05-10 21:51:30
这个(第二篇文章=第一个回复)http://www.latex-community.org/forum/viewtopic.php?f=45&t=5687可能对许多其他运行MikTex有用。 – user327684 2010-05-11 07:51:41
完美的作品!非常感谢! – user327684 2010-05-11 07:58:21