5

I have drawn a square as shown below. However, I need to draw a quarter-circle inside the square such that the radius of the quarter-circle is 1 and it the center is drawn in the bottom left. Please keep code minimal, I am a beginner.

\coordinate[label=below:$A$] (A) at (0,0);
    \coordinate[label=:$B$] (B) at (0,1);
    \coordinate[label=:$C$] (C) at (1,1);
    \coordinate[label=below:$D$] (D) at (1,0);
    \draw[] (0,0)--(0,1)--(1,1)--(1,0)--(0,0);
6

You can do that with

\draw (D) arc[start angle=0, end angle=90, radius=1];

This may or may not be self-explanatory. It draws a circular arc with radius 1 starting at the point D. start angle=0 means that it is the point on the circle at an angle of zero that is placed at D.

enter image description here

\documentclass[border=5mm]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
  \coordinate[label=below:$A$] (A) at (0,0);
  \coordinate[label=:$B$] (B) at (0,1);
  \coordinate[label=:$C$] (C) at (1,1);
  \coordinate[label=below:$D$] (D) at (1,0);

  \draw (A)--(B)--(C)--(D)--cycle;

  \draw (D) arc[start angle=0, end angle=90, radius=1];
\end{tikzpicture}
\end{document}
  • I like the simple answers. Why there is a little sign in the image at the bottom right? A cropping problem? – Sebastiano May 10 '19 at 21:29
  • 1
    @Sebastiano No, a screenshot problem. It is the mouse cursor that is included in the screenshot. – Torbjørn T. May 10 '19 at 21:35
  • Ah! Thank you so much! I think I get it now--such a simple answer as well! – M. C. May 10 '19 at 23:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.