How does Circlepoints function actually work when drawing a polygon?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
3
down vote

favorite












By reading that Circlepoints gives the positions of n points equally spaced around the unit circle, I understood that :



Graphics[Green, Polygon[CirclePoints[4]]] 


is equivalent to draw a Polygon into a circumscribed circle of radius 1 and centered as 0, 0.



I don't understand what Circlepoints with a real number does:



look at the picture:



Graphics[Red, Polygon[CirclePoints[4.434335]], Green, 
Polygon[CirclePoints[4]]]


enter image description here



What is the meaning of placing "4.434335" points around the unit circle ?How do they come equally spaced ?



Look at the red polygon, they are not equally spaced, but I don't understand how the perimeter of the inner circle would be split.










share|improve this question

























    up vote
    3
    down vote

    favorite












    By reading that Circlepoints gives the positions of n points equally spaced around the unit circle, I understood that :



    Graphics[Green, Polygon[CirclePoints[4]]] 


    is equivalent to draw a Polygon into a circumscribed circle of radius 1 and centered as 0, 0.



    I don't understand what Circlepoints with a real number does:



    look at the picture:



    Graphics[Red, Polygon[CirclePoints[4.434335]], Green, 
    Polygon[CirclePoints[4]]]


    enter image description here



    What is the meaning of placing "4.434335" points around the unit circle ?How do they come equally spaced ?



    Look at the red polygon, they are not equally spaced, but I don't understand how the perimeter of the inner circle would be split.










    share|improve this question























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      By reading that Circlepoints gives the positions of n points equally spaced around the unit circle, I understood that :



      Graphics[Green, Polygon[CirclePoints[4]]] 


      is equivalent to draw a Polygon into a circumscribed circle of radius 1 and centered as 0, 0.



      I don't understand what Circlepoints with a real number does:



      look at the picture:



      Graphics[Red, Polygon[CirclePoints[4.434335]], Green, 
      Polygon[CirclePoints[4]]]


      enter image description here



      What is the meaning of placing "4.434335" points around the unit circle ?How do they come equally spaced ?



      Look at the red polygon, they are not equally spaced, but I don't understand how the perimeter of the inner circle would be split.










      share|improve this question













      By reading that Circlepoints gives the positions of n points equally spaced around the unit circle, I understood that :



      Graphics[Green, Polygon[CirclePoints[4]]] 


      is equivalent to draw a Polygon into a circumscribed circle of radius 1 and centered as 0, 0.



      I don't understand what Circlepoints with a real number does:



      look at the picture:



      Graphics[Red, Polygon[CirclePoints[4.434335]], Green, 
      Polygon[CirclePoints[4]]]


      enter image description here



      What is the meaning of placing "4.434335" points around the unit circle ?How do they come equally spaced ?



      Look at the red polygon, they are not equally spaced, but I don't understand how the perimeter of the inner circle would be split.







      geometry polygons






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 3 hours ago









      user305883

      1658




      1658




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          2
          down vote













          The details section of the documentation says the following:




          • In CirclePoints[n], n does not have to be an exact integer. The angles between successive vectors are always $frac2pin$.

          • If the angle $theta_1$ is not given, it is assumed to be $pi/n - pi/2$, ...



          ($theta_1$ is the starting angle.)



          Here is a simple implementation to test this:



          circlePoints[n_] := Module[start, diff,
          start = Pi/n - Pi/2;
          diff = 2 Pi/n;
          Table[Cos[start + i diff], Sin[start + i diff], i, 0, Floor[n] - 1]
          ]

          Graphics[
          Green,
          Polygon[CirclePoints[4.434335]],
          FaceForm[Transparent],
          EdgeForm[Red, Thick],
          Polygon[circlePoints[4.434335]]
          ]


          Mathematica graphics




          How do they come equally spaced?




          The key here is that successive vectors are equally spaced. The angle between the first and last vectors is not the same as the other angles unless $n$ is an integer.






          share|improve this answer






















          • Does RegularPolygon have the same behavior?
            – J. M. is somewhat okay.♦
            1 min ago

















          up vote
          1
          down vote













          here is how CirclePoints work



          enter image description here



          try this..



          Graphics[Point@CirclePoints[40.99]]


          enter image description here



          the above misses a point

          see this one



          Graphics[Point@CirclePoints[41]]


          enter image description here



          now



          Graphics[Point@CirclePoints[4.43]] 


          enter image description here



          misses the fifth point...

          this one



          Graphics[Point@CirclePoints[5]] 


          enter image description here






          share|improve this answer






















            Your Answer




            StackExchange.ifUsing("editor", function ()
            return StackExchange.using("mathjaxEditing", function ()
            StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
            StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
            );
            );
            , "mathjax-editing");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "387"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f183791%2fhow-does-circlepoints-function-actually-work-when-drawing-a-polygon%23new-answer', 'question_page');

            );

            Post as a guest






























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote













            The details section of the documentation says the following:




            • In CirclePoints[n], n does not have to be an exact integer. The angles between successive vectors are always $frac2pin$.

            • If the angle $theta_1$ is not given, it is assumed to be $pi/n - pi/2$, ...



            ($theta_1$ is the starting angle.)



            Here is a simple implementation to test this:



            circlePoints[n_] := Module[start, diff,
            start = Pi/n - Pi/2;
            diff = 2 Pi/n;
            Table[Cos[start + i diff], Sin[start + i diff], i, 0, Floor[n] - 1]
            ]

            Graphics[
            Green,
            Polygon[CirclePoints[4.434335]],
            FaceForm[Transparent],
            EdgeForm[Red, Thick],
            Polygon[circlePoints[4.434335]]
            ]


            Mathematica graphics




            How do they come equally spaced?




            The key here is that successive vectors are equally spaced. The angle between the first and last vectors is not the same as the other angles unless $n$ is an integer.






            share|improve this answer






















            • Does RegularPolygon have the same behavior?
              – J. M. is somewhat okay.♦
              1 min ago














            up vote
            2
            down vote













            The details section of the documentation says the following:




            • In CirclePoints[n], n does not have to be an exact integer. The angles between successive vectors are always $frac2pin$.

            • If the angle $theta_1$ is not given, it is assumed to be $pi/n - pi/2$, ...



            ($theta_1$ is the starting angle.)



            Here is a simple implementation to test this:



            circlePoints[n_] := Module[start, diff,
            start = Pi/n - Pi/2;
            diff = 2 Pi/n;
            Table[Cos[start + i diff], Sin[start + i diff], i, 0, Floor[n] - 1]
            ]

            Graphics[
            Green,
            Polygon[CirclePoints[4.434335]],
            FaceForm[Transparent],
            EdgeForm[Red, Thick],
            Polygon[circlePoints[4.434335]]
            ]


            Mathematica graphics




            How do they come equally spaced?




            The key here is that successive vectors are equally spaced. The angle between the first and last vectors is not the same as the other angles unless $n$ is an integer.






            share|improve this answer






















            • Does RegularPolygon have the same behavior?
              – J. M. is somewhat okay.♦
              1 min ago












            up vote
            2
            down vote










            up vote
            2
            down vote









            The details section of the documentation says the following:




            • In CirclePoints[n], n does not have to be an exact integer. The angles between successive vectors are always $frac2pin$.

            • If the angle $theta_1$ is not given, it is assumed to be $pi/n - pi/2$, ...



            ($theta_1$ is the starting angle.)



            Here is a simple implementation to test this:



            circlePoints[n_] := Module[start, diff,
            start = Pi/n - Pi/2;
            diff = 2 Pi/n;
            Table[Cos[start + i diff], Sin[start + i diff], i, 0, Floor[n] - 1]
            ]

            Graphics[
            Green,
            Polygon[CirclePoints[4.434335]],
            FaceForm[Transparent],
            EdgeForm[Red, Thick],
            Polygon[circlePoints[4.434335]]
            ]


            Mathematica graphics




            How do they come equally spaced?




            The key here is that successive vectors are equally spaced. The angle between the first and last vectors is not the same as the other angles unless $n$ is an integer.






            share|improve this answer














            The details section of the documentation says the following:




            • In CirclePoints[n], n does not have to be an exact integer. The angles between successive vectors are always $frac2pin$.

            • If the angle $theta_1$ is not given, it is assumed to be $pi/n - pi/2$, ...



            ($theta_1$ is the starting angle.)



            Here is a simple implementation to test this:



            circlePoints[n_] := Module[start, diff,
            start = Pi/n - Pi/2;
            diff = 2 Pi/n;
            Table[Cos[start + i diff], Sin[start + i diff], i, 0, Floor[n] - 1]
            ]

            Graphics[
            Green,
            Polygon[CirclePoints[4.434335]],
            FaceForm[Transparent],
            EdgeForm[Red, Thick],
            Polygon[circlePoints[4.434335]]
            ]


            Mathematica graphics




            How do they come equally spaced?




            The key here is that successive vectors are equally spaced. The angle between the first and last vectors is not the same as the other angles unless $n$ is an integer.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited 3 hours ago

























            answered 3 hours ago









            C. E.

            48.2k392194




            48.2k392194











            • Does RegularPolygon have the same behavior?
              – J. M. is somewhat okay.♦
              1 min ago
















            • Does RegularPolygon have the same behavior?
              – J. M. is somewhat okay.♦
              1 min ago















            Does RegularPolygon have the same behavior?
            – J. M. is somewhat okay.♦
            1 min ago




            Does RegularPolygon have the same behavior?
            – J. M. is somewhat okay.♦
            1 min ago










            up vote
            1
            down vote













            here is how CirclePoints work



            enter image description here



            try this..



            Graphics[Point@CirclePoints[40.99]]


            enter image description here



            the above misses a point

            see this one



            Graphics[Point@CirclePoints[41]]


            enter image description here



            now



            Graphics[Point@CirclePoints[4.43]] 


            enter image description here



            misses the fifth point...

            this one



            Graphics[Point@CirclePoints[5]] 


            enter image description here






            share|improve this answer


























              up vote
              1
              down vote













              here is how CirclePoints work



              enter image description here



              try this..



              Graphics[Point@CirclePoints[40.99]]


              enter image description here



              the above misses a point

              see this one



              Graphics[Point@CirclePoints[41]]


              enter image description here



              now



              Graphics[Point@CirclePoints[4.43]] 


              enter image description here



              misses the fifth point...

              this one



              Graphics[Point@CirclePoints[5]] 


              enter image description here






              share|improve this answer
























                up vote
                1
                down vote










                up vote
                1
                down vote









                here is how CirclePoints work



                enter image description here



                try this..



                Graphics[Point@CirclePoints[40.99]]


                enter image description here



                the above misses a point

                see this one



                Graphics[Point@CirclePoints[41]]


                enter image description here



                now



                Graphics[Point@CirclePoints[4.43]] 


                enter image description here



                misses the fifth point...

                this one



                Graphics[Point@CirclePoints[5]] 


                enter image description here






                share|improve this answer














                here is how CirclePoints work



                enter image description here



                try this..



                Graphics[Point@CirclePoints[40.99]]


                enter image description here



                the above misses a point

                see this one



                Graphics[Point@CirclePoints[41]]


                enter image description here



                now



                Graphics[Point@CirclePoints[4.43]] 


                enter image description here



                misses the fifth point...

                this one



                Graphics[Point@CirclePoints[5]] 


                enter image description here







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 2 hours ago

























                answered 3 hours ago









                J42161217

                1,686216




                1,686216



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f183791%2fhow-does-circlepoints-function-actually-work-when-drawing-a-polygon%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Comments

                    Popular posts from this blog

                    Long meetings (6-7 hours a day): Being “babysat” by supervisor

                    Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

                    Confectionery