draw line according to other angle

by lucky1928   Last Updated October 20, 2019 00:23 AM - source

In below example, how can I draw a line through C and satisfy formula (current D point should be changed)


    \tikzset{dot/.style={circle,inner sep=1pt,fill,label={#1},name=#1},
    extended line/.style={shorten >=-#1,shorten <=-#1},
    extended line/.default=1cm
    \coordinate (O) at (-2,1);
    \path (O) -- ++(130:\r) coordinate (A)
          (O) -- ++(30:\r) coordinate (B)
          (O) -- ++(-90:\r) coordinate (C)
     \coordinate (D) at (0,0);
    \draw (O) circle (\r);
    \draw (A) -- (B) -- (C) -- cycle 
    pic["$\alpha$",draw,angle eccentricity=1.8,angle radius=6] {angle=C--A--B}
    pic["$\beta$",draw,angle eccentricity=1.8,angle radius=6] {angle=D--C--B};
    \draw[red,extended line=2cm] (C) -- (D);

    \foreach \x in {A,B,C,D,O} {
        \node[circle,fill,inner sep=0,minimum size=2pt,label=\x] at (\x) {};

Output: enter image description here

Tags : tikz-pgf

Related Questions

Drawing similar picture with tikz

Updated November 20, 2018 12:23 PM

Complicated curves interwined in the link figures

Updated December 17, 2018 22:23 PM

Complicated curves intertwined in the link figures (II)

Updated December 18, 2018 02:23 AM