dot-product-6.tex 560 B

12345678910111213141516171819
  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, label=$a$] (0,0) -- node[above, near start] {$\cdot$} (0.5,0)
  13. arc (0:90:0.5cm);
  14. \draw[pil] (0,0) -- node[near end, above] {$\vec e_1$} (2cm, 0);
  15. \draw[pil] (0,0) -- node[near end, right] {$\vec e_2$} (0, 2cm);
  16. \end{tikzpicture}
  17. \end{document}