Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132934 views
License: OTHER
1
\documentclass[varwidth=true, border=2pt]{standalone}
2
\usepackage{tikz}
3
\usetikzlibrary{arrows,positioning, calc}
4
\tikzset{
5
%Define standard arrow tip
6
>=stealth',
7
% Define arrow style
8
pil/.style={->,thick}
9
}
10
11
\begin{document}
12
\begin{tikzpicture}
13
% draw the background
14
\draw [line width=1.5pt, fill=gray!2] (0,0) -- (60:4) -- (4,0) -- cycle;
15
16
\coordinate[label=left:$A$] (A) at (0,0);
17
\coordinate[label=right:$B$] (B) at (4,0);
18
\coordinate[label=above:$C$] (C) at (2,3.464);
19
20
\coordinate[label=below:$c$](c) at ($ (A)!.5!(B) $);
21
\coordinate[label=left:$b$](b) at ($ (A)!.5!(C) $);
22
\coordinate[label=right:$a$](a) at ($ (B)!.5!(C) $);
23
24
% angle alpha
25
\draw[fill=green!30] (0,0) -- (0:0.75cm) arc (0:60:.75cm);
26
\draw (0.35cm,0.25cm) node {$\alpha$};
27
28
% angle beta
29
\begin{scope}[shift={(4cm,0cm)}]
30
\draw[fill=green!30] (0,0) -- (-180:0.75cm) arc (180:120:0.75cm);
31
\draw[color=gray, dashed] (0,0) -- node[sloped, above=-0.1cm] {$\scriptstyle h_b$} (150:3.464cm);
32
\draw (150:0.5cm) node {$\beta$};
33
\end{scope}
34
35
% angle gamma
36
\begin{scope}[shift={(60:4)}]
37
\draw[fill=green!30] (0,0) -- (-120:.75cm) arc (-120:-60:.75cm);
38
\draw[color=gray, dashed] (0,0) -- node[right=-0.1cm] {$\scriptstyle h_c$} (-90:3.464cm);
39
\draw (-90:0.5cm) node {$\gamma$};
40
\end{scope}
41
42
% Sign for right angle of h_c
43
\begin{scope}[shift={(2,0)}]
44
\draw[fill=gray!30] (0,0) -- node[above=-0.15cm,near start] {$\cdot$} (0:0.18cm)
45
arc (0:90:.18cm);
46
\end{scope}
47
48
% sign of right angle of h_a
49
\begin{scope}[shift={(30:3.464cm)}]
50
\draw[fill=gray!30] (0,0) -- node[near end,right=-0.28cm] {$\cdot$} (-60:0.18cm)
51
arc (-60:-150:.18cm);
52
\end{scope}
53
54
% sign of right angle of h_b
55
\begin{scope}[shift={(60:2cm)}]
56
\draw[fill=gray!30] (0,0) -- node[right=-0.08cm, near start] {$\cdot$} (60:0.18cm)
57
arc (60:-30:.18cm);
58
\end{scope}
59
60
% Height with label
61
\draw[color=gray, dashed] (0,0) -- node[sloped, above=-0.1cm] {$\scriptstyle h_a$} (30:3.464cm);
62
63
% The triangle
64
\draw [line width=1.5pt] (0,0) -- (60:4) -- (4,0) -- cycle;
65
\end{tikzpicture}
66
\end{document}
67
68