2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-24 05:48:05 +02:00
LaTeX-examples/tikz/robot-yaw/robot-yaw.tex

28 lines
872 B
TeX
Raw Permalink Normal View History

2013-11-14 23:05:32 +01:00
\documentclass{article}
\usepackage[pdftex,active,tightpage]{preview}
\setlength\PreviewBorder{2mm}
\usepackage{amsmath,amssymb}
\usepackage{tikz}
\usetikzlibrary{calc}
2013-11-14 23:05:32 +01:00
\begin{document}
\begin{preview}
\begin{tikzpicture}
\newcommand\angleR{35}
\newcommand\radiusR{4cm}
\coordinate[label=below left:$O$] (O) at (0,0);
\draw[->,very thick] (0,0)--(0,5) node[above] {$x$};
\draw[->,very thick] (0,0)--(-2.5,0) node[left] {$y$};
\node at (90+15:\radiusR+0.5cm) {$\alpha > 0$};
\node at (90-15:\radiusR+0.5cm) {$\alpha < 0$};
\draw[fill=orange!30] (-1,-1) rectangle (1,2);
\draw[fill=blue!30] (0,2) circle (0.3cm);
% Draw angle
\begin{scope}[shift={(0,0)}]
\draw[thick, <->] ([shift={({90+\angleR}:\radiusR)}]-0.0,0) arc ({90+\angleR}:{90-\angleR}:\radiusR);
\end{scope}
\end{tikzpicture}
\end{preview}
\end{document}