coordinate-system-2.tex 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. \begin{tikzpicture}
  2. \tkzSetUpPoint[shape=circle,size=10,color=black,fill=black]
  3. \tkzSetUpLine[line width=1]
  4. \tkzDefPoints{0/0/O, 1/0/X, 0/1/Y, 2/1/P}
  5. \tkzMarkAngle[fill=green!20,size=0.3cm,opacity=.5](X,O,Y)
  6. \tkzLabelAngle[pos=0.15](X,O,Y){$\cdot$}
  7. \tkzDrawLine[add=3 and 2](O,X)
  8. \tkzLabelLine[below,pos=3](O,X){$g_1$}
  9. \tkzLabelLine[right,pos=3](O,Y){$g_2$}
  10. \tkzDrawLine[add=3 and 2](O,Y)
  11. \tkzDefLine[orthogonal=through P,/tikz/overlay](O,X) \tkzGetPoint{helper}
  12. \tkzInterLL(O,X)(P,helper) \tkzGetPoint{xp}
  13. \draw [decorate,decoration={brace,amplitude=4pt,mirror}]
  14. (O) -- (xp) node [black,midway,xshift=0cm, yshift=-0.3cm]
  15. {\footnotesize $x_P$};
  16. \tkzDefLine[orthogonal=through P,/tikz/overlay](O,Y) \tkzGetPoint{helper}
  17. \tkzInterLL(O,Y)(P,helper) \tkzGetPoint{yp}
  18. \draw [decorate,decoration={brace,amplitude=4pt}]
  19. (O) -- (yp) node [black,midway,xshift=-0.4cm]
  20. {\footnotesize $y_P$};
  21. \tkzDrawPolygon(O,xp,P,yp)
  22. \tkzLabelPoint[above right](P){$P$}
  23. \tkzLabelPoint[below left](O){$0$}
  24. \tkzLabelPoint[below](xp){$P_X$}
  25. \tkzLabelPoint[left](Y){$P_Y$}
  26. \node at ($(-2,2)$){$X$};
  27. \tkzDrawPoints(P,Y,xp)
  28. \end{tikzpicture}