summaryrefslogtreecommitdiffstats
path: root/mat/domace_naloge/16/a.tex
blob: 6625a59d15b87f9061a3fadce937b02334798514 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
\begin{center}
	\begin{tikzpicture}
		\tkzDefPoint(0,0){A} \tkzDefPoint(7,0){B} \tkzDefPoint(7/2+3,0){vH}
		\tkzDefPoint(4.5,0){dH} \tkzDefPoint(7-3.5,0){bH}
		\tkzDrawLine(A,B) \tkzLabelLine[below left](A,B){$a$} \tkzCompass(A,B)
		\tkzInterCC(A,B)(B,A)	\tkzGetPoints{P1}{P2}
		\tkzCompass(A,P1) \tkzCompass(B,P1) \tkzCompass(A,P2) \tkzCompass(B,P2)
		\tkzInterLL(A,B)(P1,P2) \tkzGetPoint{ABM}
		\tkzDrawLine(P1,P2)
		\tkzInterLC(P1,P2)(ABM,vH) \tkzGetPoints{V}{VUSELESS} \tkzCompass(ABM,V)
		\tkzInterLC(P1,P2)(V,ABM) \tkzGetPoints{VX}{ABMAGAIN} \tkzCompass(V,VX)
		\tkzInterCC(ABM,VX)(VX,ABM) \tkzGetPoints{V1}{V2}
		\tkzCompass(ABM,V1) \tkzCompass(VX,V1)
		\tkzCompass(ABM,V2) \tkzCompass(VX,V2)
		\tkzDrawLine(V1,V2) \tkzLabelLine[below left](V1,V2){$c$}
		\tkzInterLC(V1,V2)(A,dH) \tkzGetPoints{D1}{D2}
		\tkzCompass(A,D1) \tkzCompass(A,D2)
		\tkzInterLC(V1,V2)(B,bH) \tkzGetPoints{C1}{C2}
		\tkzCompass(B,C1) \tkzCompass(B,C2)
		\draw[green, pattern=north east lines] (A) -- (B) node [midway, left]{$ $} -- (C1) node [midway, right, above]{$b$} -- (D1) node [midway, right]{$c$} -- (A) node [midway, below]{$d$} -- cycle;
		\draw[red, pattern=north west lines] (A) -- (B) node [midway, left]{$ $} --(C2) node [midway, right, above]{$b$} -- (D1) node [midway, right]{$c$} -- (A) node [midway, below]{$d$} -- cycle;
		\tkzDrawPolygon[fill=blue!30, opacity=.30](A,B,C1,D2)
		\tkzDrawPolygon[fill=blue!30, opacity=.30](A,B,C2,D2)
		\tkzInterLL(V,VX)(V1,V2) \tkzGetPoint{PRAVIKOT2}
		\tkzMarkRightAngles(A,ABM,P1 ABM,PRAVIKOT2,V1)
		\tkzDrawPoints(A) \tkzLabelPoints(A,B,D1,D2,C1,C2)
	\end{tikzpicture}
\end{center}