如何从轴到任意点绘制圆弧 tikz-3dplot?

如何从轴到任意点绘制圆弧 tikz-3dplot?

我一直试图从 Z/Z' 轴上的某个点到 v 上的某个点绘制一条圆弧 (α)。我找不到可以解决这个问题的示例。我可以为这个特定的系统创建一些看起来不错的东西。但是,我希望在不久的将来为其他工作创建一些更通用的东西。

我该如何在 Z/Z' 轴和任意点 P 之间画一条弧?

我提供了我的代码副本及其生成的图像以供审阅。

\documentclass[border = 10pt, 12pt]{standalone}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\usepackage{xcolor}

\definecolor{limegreen}{rgb}{0.2, 0.8, 0.2}

\begin{document}

\tdplotsetmaincoords{70}{110}
\tdplotsetrotatedcoords{0}{0}{-30}
\begin{tikzpicture}[tdplot_main_coords, scale=4]

%Draws Main Frame
\draw[line width = 2, -stealth] (0,0,0) --(2,0,0) node[above = 3] {\Large{$X$}} ;
\draw[line width = 2, -stealth] (0,0,0) --(0,2,0) node[below = 2] {\Large{$Y$}} ;
\draw[line width = 2, -stealth] (0,0,0) --(0,0,2) node[right = 2] {\Large{$Z$}} ;

%Draws rotated frame
\draw[tdplot_rotated_coords, line width = 2, -stealth, red, dashed] (0,0,0) --(2,0,0) node[above = 3] {\Large{$X'$}} ;
\draw[tdplot_rotated_coords, line width = 2, -stealth, red, dashed] (0,0,0) --(0,2,0) node[below = 2] {\Large{$Y'$}} ;  
\draw[tdplot_rotated_coords, line width = 2, -stealth, red, dashed] (0,0,0) --(0,0,2) node[left = 2] {\Large{$Z'$}} ;   

%Draw vector in main frame
\draw[line width = 2, -stealth, limegreen ] (0,0,0) --(2,2,2) node[right = 2] {\Large{$\vec{v}$}} ;

%Draw vector in rotated frame
\draw[tdplot_rotated_coords, line width = 2, -stealth, blue] (0,0,0) --(2,2,2) node[left = 2] {\Large{$\vec{v}'$}} ;

%draws rotation
\draw[canvas is xy plane at z = 0, line width = 1, domain = 90:60, -latex,red] plot ({.75*cos(\x)}, {.75*sin(\x)});
\draw[canvas is xy plane at z = 0, line width = 1, domain = 0:-30, -latex,red] plot ({.75*cos(\x)}, {.75*sin(\x)}) ;
\tdplotdrawarc[-stealth, line width = 1, red]{(0,0,1)}{1.414}{45}{15}{anchor=north}{\Large{$d\psi$}}

%Labels rotations
\node [red] at (.25, .875, 0) {\Large{$d\psi$}};
\node [red] at (.95, -.2, 0) {\Large{$d\psi$}};
%draws dv
\draw[line width = 1, -stealth, blue] (2,2,2) -- node[above = 3] {\Large{$d\vec{v}$}} (2.732051,0.732051,2);
%draws alpha
\draw[line width = 1] (0,0,1) -- node[above = 3] {\Large{$\alpha$}} (1,1,1);

\end{tikzpicture}
\end{document}

在此处输入图片描述

相关内容