File:Triangle-right-abchpq.svg

Summary

Description
English: Right triangle with the line segments .
Deutsch: Rechtwinkliges Dreieck mit eingezeichneter Höhe und den Strecken , welche zusammen ergeben.
Date
Source Own work
Author MartinThoma
 
W3C-validity not checked.
Category:Unchecked SVG validity

Latest source is available at github


This file was created with LaTeX (tikz):

\documentclass{article}
\usepackage[pdftex,active,tightpage]{preview}
\setlength\PreviewBorder{2mm}
\usepackage{tikz}
\usepackage{tkz-euclide}
\usetikzlibrary{shapes, calc, shapes, decorations}
\usepackage{amsmath,amssymb}

\begin{document}
\begin{preview}
\begin{tikzpicture}[thick]
    \newcommand\XC{4}
    \newcommand\ALPHA{30}

    \newcommand\XB{{(\XC*(cos(\ALPHA)*cos(\ALPHA) - sin(\ALPHA)*sin(\ALPHA)) + \XC)*0.5}}
    \newcommand\YB{{sqrt(cos(\ALPHA)*\XC*cos(\ALPHA)*\XC - (\XC*(cos(\ALPHA)*cos(\ALPHA) - sin(\ALPHA)*sin(\ALPHA)) + \XC)*0.5*(\XC*(cos(\ALPHA)*cos(\ALPHA) - sin(\ALPHA)*sin(\ALPHA)) + \XC)*0.5)}}

    \newcommand\XBo{{(\XB)+4}}
    \newcommand\YBo{{\YB}}
    \newcommand\XBp{{\XB*0.5}}
    \newcommand\YBp{{\YB*0.5}}

    % Draw the triangle
    \draw[fill=gray!10]  (0,    0) coordinate (A)
        -- (\XB,\YB) coordinate (C)
        -- (\XC,  0) coordinate (B)
        -- (0,    0)  -- cycle;

    % Draw nodes
    \node at (A)[anchor=north] {A};
    \node at (B)[anchor=north] {B};
    \node at (C)[anchor=south] {C};

    % Draw edge text
    \node (c) at ($(A)!0.5!(B)$) [below] {c};
    \node (b) at ($(A)!0.5!(C)$) [above] {b};
    \node (a) at ($(B)!0.6!(C)$) [right] {a};


    % draw alpha
    \draw[fill=blue!30] (0,0) -- (0:0.75cm) arc (0:\ALPHA:.75cm);
    \coordinate[label=right:$\alpha$] (Alpha) at (0.25,0.15);

    % draw beta
    \begin{scope}[shift={(\XC, 0)}]
        \draw[fill=green!30] (0,0) -- (-180:0.50cm) arc (180:{180-(90-\ALPHA)}:0.5cm);
        \draw (150:0.35cm) node {$\beta$};
    \end{scope}

    % draw gamma
    \begin{scope}[shift={(\XB, \YB)}]
        \draw[fill=red!30] (0,0) -- ({180+\ALPHA}:0.5cm) arc ({180+\ALPHA}:{180+\ALPHA+90}:0.5cm);
        \draw (-0.1, -0.05) node[below] {$\gamma$};
    \end{scope}


    % shifted alpha
    \begin{scope}[shift={(4,0)}]
        \path[fill=blue!30] (0,0) -- (0:0.5cm) arc (0:\ALPHA:.5cm);
        \draw (0:0.5cm) arc (0:\ALPHA:.5cm);
    \end{scope}

    % shifted gamma
    \begin{scope}[shift={(4, 0)},rotate=180]
        \path[fill=red!30] (0,0) -- ({180+\ALPHA}:0.5cm) arc ({180+\ALPHA}:{180+\ALPHA+90}:0.5cm);
        \draw ({180+\ALPHA}:0.5cm) arc ({180+\ALPHA}:{180+\ALPHA+90}:0.5cm);
    \end{scope}

    \begin{scope}[shift={(3.13,-0.5)},scale=0.7]
        \draw[dashed, red] (0, 0)  -- (\XB,\YB);
    \end{scope}

    \draw[dashed, color=red] (-0.6, 0) -- (5.3, 0);
    \draw  (0,    0) coordinate (X)
        -- (\XB,\YB) coordinate (Y)
        -- (\XC,  0) coordinate (Z)
        -- (0,    0);

    \tkzDrawLine[thick,dashed](A,C)
\end{tikzpicture}
\end{preview}
\end{document}

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

Category:CC-Zero#Triangle-right-abchpq.svgCategory:Self-published work

This image has been assessed using the Quality image guidelines and is considered a Quality image.

العربية  جازايرية  беларуская  беларуская (тарашкевіца)  български  বাংলা  català  čeština  Cymraeg  Deutsch  Schweizer Hochdeutsch  Zazaki  Ελληνικά  English  Esperanto  español  eesti  euskara  فارسی  suomi  français  galego  עברית  हिन्दी  hrvatski  magyar  հայերեն  Bahasa Indonesia  italiano  日本語  Jawa  ქართული  Qaraqalpaqsha  한국어  kurdî  кыргызча  Latina  Lëtzebuergesch  lietuvių  македонски  മലയാളം  मराठी  Bahasa Melayu  Nederlands  Norfuk / Pitkern  polski  português  português do Brasil  rumantsch  română  русский  sicilianu  slovenčina  slovenščina  shqip  српски / srpski  svenska  தமிழ்  తెలుగు  ไทย  Tagalog  toki pona  Türkçe  українська  oʻzbekcha / ўзбекча  vèneto  Tiếng Việt  中文  中文(简体)  中文(繁體)  +/−

Category:Quality images#Triangle-right-abchpq.svgCategory:Quality images missing SDC depicts Category:Right triangles Category:TikZ graphics Category:Images by Martin Thoma/Mathematics/Triangles Category:Quality images by Martin Thoma Category:Quality images - valid vector
Category:CC-Zero Category:Images by Martin Thoma/Mathematics/Triangles Category:Quality images Category:Quality images - valid vector Category:Quality images by Martin Thoma Category:Quality images missing SDC depicts Category:Right triangles Category:Self-published work Category:TikZ graphics Category:Unchecked SVG validity