dot-product-2.tex 858 B

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