von godi » Di 2. Okt 2018, 12:28
Hallo,
ich habe eine Lösung gefunden, indem ich alle Rotationen mit tikz-3Dplot ausführe und das Rechteck mit Linien gezeichnet habe. Das Rechteck hat sich sonst nicht gedreht.
\documentclass{article}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\begin{document}
\tdplotsetmaincoords{0}{0}
\begin{tikzpicture} [tdplot_main_coords, thick, scale=10]
% Coordinate system:
\draw[gray, <->] (-0.5,0) node[below]{$-x$} -- (0.5,0) node[below]{$x$};
\draw[gray, <->] (0,-0.5) node[left]{$-y$} -- (0, 0.5) node[left]{$y$};
\draw (0.26,-0.26) circle (0.21);
\tdplotsetrotatedcoords{-45}{0}{0}
\begin{scope}[tdplot_rotated_coords]
\draw [fill] (0,0.015) -- (0.155,0.015) -- (0.155,-0.015) -- (0,-0.015) -- cycle;
\draw [fill] ({0.26*sqrt(2)},0.0) ellipse (.20 and .02);
\end{scope}
\end{tikzpicture}
\tdplotsetmaincoords{45}{15}
\begin{tikzpicture} [tdplot_main_coords, thick, scale=10]
% Coordinate system:
\draw[gray, <->] (-0.5,0,0) node[below]{$-x$} -- (0.5,0) node[below]{$x$};
\draw[gray, <->] (0,-0.5,0) node[left]{$-y$} -- (0,0.5,0) node[left]{$y$};
\draw[gray, <->] (0,0,-0.5) node[left]{$-z$} -- (0,0,0.5) node[left]{$z$};
\draw (0.26,-0.26) circle (0.21);
\tdplotsetrotatedcoords{-45}{0}{0}
\begin{scope}[tdplot_rotated_coords]
\draw [fill] (0,0.015) -- (0.155,0.015) -- (0.155,-0.015) -- (0,-0.015) -- cycle;
\draw [fill] ({0.26*sqrt(2)},0) ellipse (.20 and .02);
\end{scope}
\end{tikzpicture}
\end{document}
Hallo,
ich habe eine Lösung gefunden, indem ich alle Rotationen mit tikz-3Dplot ausführe und das Rechteck mit Linien gezeichnet habe. Das Rechteck hat sich sonst nicht gedreht.
[code]
\documentclass{article}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\begin{document}
\tdplotsetmaincoords{0}{0}
\begin{tikzpicture} [tdplot_main_coords, thick, scale=10]
% Coordinate system:
\draw[gray, <->] (-0.5,0) node[below]{$-x$} -- (0.5,0) node[below]{$x$};
\draw[gray, <->] (0,-0.5) node[left]{$-y$} -- (0, 0.5) node[left]{$y$};
\draw (0.26,-0.26) circle (0.21);
\tdplotsetrotatedcoords{-45}{0}{0}
\begin{scope}[tdplot_rotated_coords]
\draw [fill] (0,0.015) -- (0.155,0.015) -- (0.155,-0.015) -- (0,-0.015) -- cycle;
\draw [fill] ({0.26*sqrt(2)},0.0) ellipse (.20 and .02);
\end{scope}
\end{tikzpicture}
\tdplotsetmaincoords{45}{15}
\begin{tikzpicture} [tdplot_main_coords, thick, scale=10]
% Coordinate system:
\draw[gray, <->] (-0.5,0,0) node[below]{$-x$} -- (0.5,0) node[below]{$x$};
\draw[gray, <->] (0,-0.5,0) node[left]{$-y$} -- (0,0.5,0) node[left]{$y$};
\draw[gray, <->] (0,0,-0.5) node[left]{$-z$} -- (0,0,0.5) node[left]{$z$};
\draw (0.26,-0.26) circle (0.21);
\tdplotsetrotatedcoords{-45}{0}{0}
\begin{scope}[tdplot_rotated_coords]
\draw [fill] (0,0.015) -- (0.155,0.015) -- (0.155,-0.015) -- (0,-0.015) -- cycle;
\draw [fill] ({0.26*sqrt(2)},0) ellipse (.20 and .02);
\end{scope}
\end{tikzpicture}
\end{document}
[/code]