mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-19 11:38:05 +02:00
added new dotproduct image
This commit is contained in:
parent
7f8462dcc5
commit
ba1df5dc79
1 changed files with 25 additions and 0 deletions
25
tikz/dot-product-3/dot-product-3.4.tex
Normal file
25
tikz/dot-product-3/dot-product-3.4.tex
Normal file
|
@ -0,0 +1,25 @@
|
|||
\documentclass{article}
|
||||
\usepackage{gensymb}
|
||||
\usepackage[pdftex,active,tightpage]{preview}
|
||||
\setlength\PreviewBorder{2mm}
|
||||
\usepackage{tikz}
|
||||
\usetikzlibrary{arrows,positioning,decorations.pathreplacing,shapes}
|
||||
\tikzset{
|
||||
%Define standard arrow tip
|
||||
>=stealth',
|
||||
% Define arrow style
|
||||
pil/.style={
|
||||
->,
|
||||
thick}
|
||||
}
|
||||
|
||||
\begin{document}
|
||||
\begin{preview}
|
||||
\begin{tikzpicture}
|
||||
\draw[fill=green!30, label=$a$] (0,0) -- node[above] {$\varphi$} (0.7,0)
|
||||
arc (0:120:0.7cm);
|
||||
\draw[pil] (0,0) -- node[near end, above] {$\vec a$} (3cm, 0);
|
||||
\draw[pil] (0,0) -- node[near end, right] {$\vec b$} (120:2cm);
|
||||
\end{tikzpicture}
|
||||
\end{preview}
|
||||
\end{document}
|
Loading…
Add table
Add a link
Reference in a new issue