答案1
我会使用正交投影。如今的标准工具是asymptote
和tikz-3dplot
库perspective
。
\documentclass[tikz,border=3mm]{standalone}
\usetikzlibrary{perspective}
\begin{document}
\begin{tikzpicture}[>=stealth,semithick,line cap=round,
3d view={110}{15},%<- install 3d view and set view angles
declare function={Mx=4;My=3;Mz=4;}%<- define the components of M
]
\draw (0,0,0) -- (5,0,0) ;
\draw (0,0,0) -- (0,5,0) ;
\draw (0,0,0) -- (0,0,5) ;
\draw[red,->] (0,0,0) -- (Mx,My,Mz)coordinate(M) node[pos=1.1]{$M$};
\draw[green!70!black,->] (0,0,0) -- (Mx,My,0)coordinate(M') node[pos=1.2]{$M'$};
\draw[dashed] (Mx,0,0) node[above left,red]{$x$} -- (Mx,My,0)
-- (0,My,0) node[above,red]{$y$}
(M') -- (M) -- (0,0,Mz) node[left,red]{$z$};
\draw[->,cyan] (0,0,0) -- (1,0,0) node[above left] {$\vec i$};
\draw[->,cyan] (0,0,0) -- (0,1,0) node[above] {$\vec j$};
\draw[->,cyan] (0,0,0) -- (0,0,1) node[left] {$\vec k$};
\end{tikzpicture}
\end{document}