Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. question about CDC:Pie

question about CDC:Pie

Scheduled Pinned Locked Moved C / C++ / MFC
question
7 Posts 2 Posters 5 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    ForNow
    wrote on last edited by
    #1

    Hi I have a question regarding the pie method in CDC there are eight parms the first 4 represent the bounding rectangle in which the ellipse or the circle is enclosed the last 4 represent the starting and ending points and of the arc my question is for the last 4 why is the "Y' vertical parm necessary it would always seem to be from the center of the arc to its edge I hope my question makes sense thanks

    L 1 Reply Last reply
    0
    • F ForNow

      Hi I have a question regarding the pie method in CDC there are eight parms the first 4 represent the bounding rectangle in which the ellipse or the circle is enclosed the last 4 represent the starting and ending points and of the arc my question is for the last 4 why is the "Y' vertical parm necessary it would always seem to be from the center of the arc to its edge I hope my question makes sense thanks

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      "Y", the radius at x = 0, varies with the angle of the arc (as a point on the circumference).

      "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

      F 1 Reply Last reply
      0
      • L Lost User

        "Y", the radius at x = 0, varies with the angle of the arc (as a point on the circumference).

        "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

        F Offline
        F Offline
        ForNow
        wrote on last edited by
        #3

        Tell me if I am right I think I first need to determine the angle so if is 25 % then the angle is 90 4 / 360 then to get the y it’s y = consin(angle) x = sin(angle) Right ?

        L 1 Reply Last reply
        0
        • F ForNow

          Tell me if I am right I think I first need to determine the angle so if is 25 % then the angle is 90 4 / 360 then to get the y it’s y = consin(angle) x = sin(angle) Right ?

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          [trigonometry - calculate x,y positions in circle every n degrees - Mathematics Stack Exchange](https://math.stackexchange.com/questions/676249/calculate-x-y-positions-in-circle-every-n-degrees)

          "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

          F 1 Reply Last reply
          0
          • L Lost User

            [trigonometry - calculate x,y positions in circle every n degrees - Mathematics Stack Exchange](https://math.stackexchange.com/questions/676249/calculate-x-y-positions-in-circle-every-n-degrees)

            "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

            F Offline
            F Offline
            ForNow
            wrote on last edited by
            #5

            Thanks for help one more follow up question Would this equation not have to be multiplied by the number of pixels per circle degree I mean the formula is the same for big and small circles so you have to taken into account the size of the circle I’m sure I can do it with GetCientrect Thanks

            L 1 Reply Last reply
            0
            • F ForNow

              Thanks for help one more follow up question Would this equation not have to be multiplied by the number of pixels per circle degree I mean the formula is the same for big and small circles so you have to taken into account the size of the circle I’m sure I can do it with GetCientrect Thanks

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              The radius determines the size of a circle. If you want to scale, you vary the radius.

              "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

              F 1 Reply Last reply
              0
              • L Lost User

                The radius determines the size of a circle. If you want to scale, you vary the radius.

                "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

                F Offline
                F Offline
                ForNow
                wrote on last edited by
                #7

                My client etc is a square so either the width or height divided by 2 Ok thanks

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups