2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00
LaTeX-examples/documents/gallery/dot-product-2.tex
2012-09-28 21:25:50 +02:00

24 lines
858 B
TeX

\documentclass[varwidth=true, border=2pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows,positioning}
\tikzset{
%Define standard arrow tip
>=stealth',
% Define arrow style
pil/.style={->,thick}
}
\begin{document}
\begin{tikzpicture}
\draw[fill=gray!30] (27:0.90) -- node[right=-0.28cm, near end] {$\cdot$} (27:1.08)
arc (27:117:.18cm);
\draw[fill=green!30] (0,0) -- (90:.55cm) arc (90:27:.55cm);
\draw[pil,color=red] (0,0) -- node[right=2pt] {$\vec a$} (27:3cm);
\draw[pil,color=blue] (0,0) -- node[near end, right=-3pt] {$\vec b$} (90:2cm);
\draw[pil,color=violet] (0,0) -- node[near start, right=7pt] {$\vec b_{\vec a}$} (27:0.90cm);
\draw[color=gray, dashed] (27:0.90) -- node[near end, right] {} (90:2cm);
\draw(60:0.35cm) node {$\varphi$};
\end{tikzpicture}
\end{document}