2
$\begingroup$

I would like to draw a quadrilateral inscribed within a circle. How can I construct this figure, taking into account arbitrary (specified) side lengths, while still ensuring that the vertices of the quadrilateral lie on the circle?

$\endgroup$
11
  • $\begingroup$ It is to be quad in a circle with a user-specified length of the side of a quad, is to change the circle to fit a quad in a circle. $\endgroup$
    – user5955
    Feb 18, 2013 at 13:12
  • $\begingroup$ Just that, given the length of the side of the square will fit within a circle, which is automatically size to fit the square. $\endgroup$
    – user5955
    Feb 18, 2013 at 13:21
  • $\begingroup$ I have edited your question according to what I think it means. Can you confirm whether or not this is correct? $\endgroup$ Feb 18, 2013 at 13:24
  • 3
    $\begingroup$ Perhaps mathworld.wolfram.com/CyclicQuadrilateral.html ? $\endgroup$
    – cormullion
    Feb 18, 2013 at 13:37
  • 2
    $\begingroup$ @user5955 You image showed a rectangular inscribed. Therefore, I assumed you don't need an arbitrary quadrilateral. $\endgroup$
    – halirutan
    Feb 18, 2013 at 13:52

1 Answer 1

7
$\begingroup$

I hope I understood your question correctly. When you place your figure at {0,0}, meaning the center of the circle and the center of the rectangle is there, you don't need to calculate very much. Indeed, everything is then fixed by exactly one point p defining a corner of the rectangle and the radius of the circle.

A dynamic version of your graphics can be written down in only a few lines of code

Manipulate[
 Graphics[{FaceForm[None], EdgeForm[Thick], Rectangle[-p, p],
   Thick, Red, Circle[{0, 0}, Norm[p]]}, PlotRange -> {{-2, 2}, {-2, 2}}],
 {{p, {1, 1}}, Locator}
]

Mathematica graphics

$\endgroup$
1
  • $\begingroup$ Yes thanks for your help. Best regards. $\endgroup$
    – user5955
    Feb 18, 2013 at 13:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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