Re: Le mie (dis)avventure con TikZ

#96828
lorenzo.pantieri
Partecipante
    Up
    0
    Down
    ::

    schwarz89it” post=107240Per dirla in modo più consono, la semi altezza del rettangolo deve essere proiettata sui due assi cartesiani.

    Perfetto!

    `\documentclass{article}
    \usepackage{tikz}
    \usepackage[applemac]{inputenc}

    \begin{document}

    \begin{center}
    \begin{tikzpicture} [font=\small]
    \draw [thick] (0,0) — (4.5,0) — (0,2.59808) — cycle;
    \draw [thick] (4.5,0) ++(150:5mm) arc (150:180:5mm);
    \node [above] at (3.5,0) {$30°$};
    \draw [thick,,rounded corners,shift={(2.25+0.125,1.29904+0.216506)},rotate =-30] (-0.5,-0.25) rectangle (0.5,0.25);

    \end{tikzpicture}
    \end{center}

    \begin{center}
    \begin{tikzpicture} [font=\small]
    \draw [thick] (0,0) — (3,0) — (0,3) — cycle;
    \draw [thick] (3,0) ++(135:5mm) arc (135:180:5mm);
    \node [above] at (2.25,0) {$45°$};
    \draw [thick,rounded corners,shift={(1.5+0.176777,1.5+0.176777)},rotate =-45] (-0.5,-0.25) rectangle (0.5,0.25);
    \draw [<->,dashed] (-0.25,-0) — (-0.25,3);
    \node

    at (-0.25,1.5) {$h$};
    \end{tikzpicture}
    \end{center}

    \end{document}`

    Il pacchetto inputenc permette di inserireil simbolo di grado.

    Grazie mille!

    Go to top