2

Reference: How to draw tangent to two touching circles and marking the points

With reference to above link I am trying to make the below figure. But I am not able to make the parts added in the figure by red color. Furthermore I want to draw two right angle marks at points R and I. Please help me.

My MWE:

\documentclass[12pt,a4paper]{article}

\usepackage{tkz-euclide}
\usetkzobj{all}

\begin{document}
\Huge
\begin{tikzpicture}[scale=.8]

\tkzDefPoint(0,0){Origin}
\tkzDefPoint(12,0){O}
\pgfmathsetmacro{\Radius}{4}

\tkzTangent[from with R = O](Origin,\Radius cm)  \tkzGetPoints{R}{I} 

\tkzDrawCircle[R](Origin,\Radius cm)

\tkzDrawSegments[thick,black,add = 0 and .4](O,R O,I)

\tkzLabelPoints[left,above](R)
\tkzLabelPoints[left,below](I)
\tkzLabelPoints[right](O)
\tkzLabelPoint[left](Origin){$P$}

\end{tikzpicture}
\end{document}

enter image description here

4
  • just add -> , \tkzDrawSegments[->,thick,black,add = 0 and .4](O,R O,I)
    – Salim Bou
    Commented Jul 27, 2016 at 8:38
  • and how to draw that two segments between PR and PI. Further how can i increase the size of the top of ray.
    – SandyM
    Commented Jul 27, 2016 at 9:00
  • \tkzDrawSegments[thick,red](Origin,R Origin,I)
    – Salim Bou
    Commented Jul 27, 2016 at 10:42
  • To mark right angles at the points of tangency, use \tkzMarkRightAngle(O,R,P) and \tkzMarkRightAngle(O,I,P). Commented Nov 6, 2018 at 2:44

1 Answer 1

2

Here your code with the previous observations, for arrows customization you can take advantage of arrows.meta library

Code

\documentclass[12pt,a4paper]{article}
\usepackage{tkz-euclide}
\usetikzlibrary{arrows.meta}
\usetkzobj{all}

\begin{document}
\Huge
\begin{tikzpicture}[scale=.8,> = {Stealth[length=10pt, inset=5pt]}]]


\tkzDefPoint(0,0){Origin}
\tkzDefPoint(12,0){O}
\pgfmathsetmacro{\Radius}{4}

\tkzTangent[from with R = O](Origin,\Radius cm)  \tkzGetPoints{R}{I} 

\tkzDrawCircle[R](Origin,\Radius cm)

\tkzDrawSegments[->,thick,black,add = 0 and .4](O,R O,I)
\tkzDrawSegments[thick,red](Origin,R Origin,I)

\tkzLabelPoints[left,above](R)
\tkzLabelPoints[left,below](I)
\tkzLabelPoints[right](O)
\tkzLabelPoint[left](Origin){$P$}

\end{tikzpicture}
\end{document}

Output

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .