mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-26 06:48:04 +02:00
misc
This commit is contained in:
parent
cc72dbf03e
commit
43fb00b116
7 changed files with 170 additions and 0 deletions
44
tikz/vector-change-direction/vector-change-direction.tex
Normal file
44
tikz/vector-change-direction/vector-change-direction.tex
Normal file
|
@ -0,0 +1,44 @@
|
|||
\documentclass[varwidth=true, border=2pt]{standalone}
|
||||
\usepackage{tkz-euclide}
|
||||
\usepackage{tikz}
|
||||
\usetikzlibrary{shapes, calc, shapes, arrows}
|
||||
\usepackage{amsmath,amssymb}
|
||||
|
||||
\usepackage{xcolor}
|
||||
\definecolor{xvectorcolor}{HTML}{77933C}
|
||||
|
||||
\begin{document}
|
||||
\usetkzobj{all}
|
||||
\begin{tikzpicture}[font=\boldmath]
|
||||
\large
|
||||
|
||||
% Points
|
||||
\coordinate (A) at (0,0) {};
|
||||
\coordinate (B) at (2,2) {};
|
||||
\coordinate (AB2) at (3,3) {};
|
||||
\coordinate (C) at (5,0) {};
|
||||
|
||||
\node[below of=A,node distance=0.4cm] {$\scriptsize (0, 0)$};
|
||||
\node[left of=B,node distance=0.9cm] {$\scriptsize (x_1, y_1)$};
|
||||
\node[below of=C,node distance=0.4cm] {$\scriptsize (x_2, y_2)$};
|
||||
|
||||
% Draw the angles
|
||||
% angle alpha
|
||||
\draw[fill=green!30] (A) -- (0:0.75cm) arc (0:45:.75cm);
|
||||
\draw (0.45cm,0.17cm) node {$\alpha$};
|
||||
|
||||
% angle beta
|
||||
\tkzMarkAngle[arc=l,size=0.7cm,color=blue,fill=blue!20](A,B,C)
|
||||
%\draw[fill=green!30] (B) -- ($(B)!0.2!(C)$) arc (-35:-132:.75cm);
|
||||
\draw (2.0cm, 1.6cm) node {$\beta$};
|
||||
|
||||
% angle gamma
|
||||
\tkzMarkAngle[arc=l,size=0.7cm,color=red,fill=red!20](C,B,AB2)
|
||||
\draw (2.4cm, 2.0cm) node {$\gamma$};
|
||||
|
||||
|
||||
% Draw the vectors
|
||||
\draw[ultra thick, xvectorcolor, arrows={-latex}] (A) -- (B);
|
||||
\draw[ultra thick, blue!80, arrows={-latex}] (B) -- (C);
|
||||
\end{tikzpicture}
|
||||
\end{document}
|
Loading…
Add table
Add a link
Reference in a new issue