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. How to find 3rd coordinate of a triangle given 2 others

How to find 3rd coordinate of a triangle given 2 others

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
20 Posts 5 Posters 0 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.
  • D David Crow

    Does your triangle look like:

    A
    |\
    | \
    | \
    | \
    | \
    | \
    | \
    C -------- B

    "Love people and use things, not love things and use people." - Unknown

    "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

    C Offline
    C Offline
    CPallini
    wrote on last edited by
    #6

    Well, I suppose you may freely rotate it and (as long as you keep the straight angle) make it isosceles. :-D

    If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
    This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
    [My articles]

    D 1 Reply Last reply
    0
    • C CPallini

      Well, I suppose you may freely rotate it and (as long as you keep the straight angle) make it isosceles. :-D

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
      [My articles]

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #7

      My question was actually leading up to something else. If he knows the x,y coordinates of A and B, and he knows the distance of AC and BC, then he should be able to add/subtract from A and B to get C. I've never studied trigonometry so I may be missing something obvious.

      "Love people and use things, not love things and use people." - Unknown

      "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

      C 1 Reply Last reply
      0
      • D David Crow

        My question was actually leading up to something else. If he knows the x,y coordinates of A and B, and he knows the distance of AC and BC, then he should be able to add/subtract from A and B to get C. I've never studied trigonometry so I may be missing something obvious.

        "Love people and use things, not love things and use people." - Unknown

        "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

        C Offline
        C Offline
        CPallini
        wrote on last edited by
        #8

        I was just kidding and your point is good. IMHO the problem with is question is the redundance of inputs (excluding the 'stolen membership hypothesis'). :)

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
        [My articles]

        1 Reply Last reply
        0
        • C Chesnokov Yuriy

          In ABC triangle, there are A and B coordinates are given, AB, AC and BC distances are known, the ACB angle is 90'. How to find C point x,y coordinates?

          chesnokov

          C Offline
          C Offline
          Cosmic Egg
          wrote on last edited by
          #9

          This problem can be seen as finding intersection of two circle. also this problem will have two solutions. How to imagine it as problem of intersection of two circles. Circle 1 center point be A with radius AC and circle 2 as of center B and radius BC. Note: ACB angle 90 degree information is redundant and is not required check out the below link to find the solution of intersection points of two circles and well as the c code to do it. The c code can be directly used for your purpose. http://ozviz.wasp.uwa.edu.au/~pbourke/geometry/2circle/[^] You could have found a faster solution in mathematics and algorithm discussion section.

          C C 2 Replies Last reply
          0
          • C Cosmic Egg

            This problem can be seen as finding intersection of two circle. also this problem will have two solutions. How to imagine it as problem of intersection of two circles. Circle 1 center point be A with radius AC and circle 2 as of center B and radius BC. Note: ACB angle 90 degree information is redundant and is not required check out the below link to find the solution of intersection points of two circles and well as the c code to do it. The c code can be directly used for your purpose. http://ozviz.wasp.uwa.edu.au/~pbourke/geometry/2circle/[^] You could have found a faster solution in mathematics and algorithm discussion section.

            C Offline
            C Offline
            CPallini
            wrote on last edited by
            #10

            Cosmic Egg wrote:

            Note: ACB angle 90 degree information is redundant and is not required

            Also distance between A and B is redundant (we've their coords). Generally speaking, two pieces of info are redundant. :)

            If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
            This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
            [My articles]

            1 Reply Last reply
            0
            • D David Crow

              Does your triangle look like:

              A
              |\
              | \
              | \
              | \
              | \
              | \
              | \
              C -------- B

              "Love people and use things, not love things and use people." - Unknown

              "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

              C Offline
              C Offline
              Chesnokov Yuriy
              wrote on last edited by
              #11

              Yes exactly. I've got recently extension as we can have either A,B coords and CBA,CAB angles to find out C coords, or we know B coord only plus AB,BC lengths to find out A coords. I'm ashamed :-O I always exceled in geometry but that was dozen of years ago in school.

              chesnokov

              1 Reply Last reply
              0
              • D David Crow

                Does your triangle look like:

                A
                |\
                | \
                | \
                | \
                | \
                | \
                | \
                C -------- B

                "Love people and use things, not love things and use people." - Unknown

                "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

                C Offline
                C Offline
                Chesnokov Yuriy
                wrote on last edited by
                #12

                ... but do not forget arbitrary rotation of the triangle.

                chesnokov

                1 Reply Last reply
                0
                • C Cosmic Egg

                  This problem can be seen as finding intersection of two circle. also this problem will have two solutions. How to imagine it as problem of intersection of two circles. Circle 1 center point be A with radius AC and circle 2 as of center B and radius BC. Note: ACB angle 90 degree information is redundant and is not required check out the below link to find the solution of intersection points of two circles and well as the c code to do it. The c code can be directly used for your purpose. http://ozviz.wasp.uwa.edu.au/~pbourke/geometry/2circle/[^] You could have found a faster solution in mathematics and algorithm discussion section.

                  C Offline
                  C Offline
                  Chesnokov Yuriy
                  wrote on last edited by
                  #13

                  I knew ~pbourke site long times ago it was great. The solution is very near and seems obvious. Mathematics thread seems not so populated, also I would not met there me friends :-)

                  chesnokov

                  1 Reply Last reply
                  0
                  • R Rajesh R Subramanian

                    Not stolen membership. It's him and he's been asking extremely basic questions for quite a while now: Unresolved external symbol[^]. It's funny how he asked if we earn money with votes and started whining after someone voted down his article. I've (along with a few other regulars) stopped providing any assistance to him. And now he has posted a trigonometry question in the Visual C++ board. :rolleyes:

                    Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche .·´¯`·->Rajesh<-·´¯`·. [Microsoft MVP - Visual C++]

                    C Offline
                    C Offline
                    CPallini
                    wrote on last edited by
                    #14

                    Unbelievable [^]. :-D

                    If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                    This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                    [My articles]

                    R 1 Reply Last reply
                    0
                    • C CPallini

                      Unbelievable [^]. :-D

                      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                      [My articles]

                      R Offline
                      R Offline
                      Rajesh R Subramanian
                      wrote on last edited by
                      #15

                      More things[^] He deleted all his rude posts!

                      Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche .·´¯`·->Rajesh<-·´¯`·. [Microsoft MVP - Visual C++]

                      C 1 Reply Last reply
                      0
                      • R Rajesh R Subramanian

                        More things[^] He deleted all his rude posts!

                        Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche .·´¯`·->Rajesh<-·´¯`·. [Microsoft MVP - Visual C++]

                        C Offline
                        C Offline
                        CPallini
                        wrote on last edited by
                        #16

                        :omg: I never saw Mark so upset :omg: Now I'm curious about deleted messages content. :)

                        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                        [My articles]

                        R 1 Reply Last reply
                        0
                        • C CPallini

                          :omg: I never saw Mark so upset :omg: Now I'm curious about deleted messages content. :)

                          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                          This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                          [My articles]

                          R Offline
                          R Offline
                          Rajesh R Subramanian
                          wrote on last edited by
                          #17

                          No, Mark was not upset. That is the dialogues from Monty Python holy grail scene 8. :)

                          Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche .·´¯`·->Rajesh<-·´¯`·. [Microsoft MVP - Visual C++]

                          C 1 Reply Last reply
                          0
                          • R Rajesh R Subramanian

                            No, Mark was not upset. That is the dialogues from Monty Python holy grail scene 8. :)

                            Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche .·´¯`·->Rajesh<-·´¯`·. [Microsoft MVP - Visual C++]

                            C Offline
                            C Offline
                            CPallini
                            wrote on last edited by
                            #18

                            OK but there should be a reason to quote it, shouldn't it?

                            If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                            This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                            [My articles]

                            R 1 Reply Last reply
                            0
                            • C CPallini

                              OK but there should be a reason to quote it, shouldn't it?

                              If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                              This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                              [My articles]

                              R Offline
                              R Offline
                              Rajesh R Subramanian
                              wrote on last edited by
                              #19

                              When I asked him not to low-vote all the posts, he said that we must look at things the "Monty Python" way. So, Mark replied with a Monty python quote. He asked me if I earn money with votes and said that I am partial towards high votes. Later on, ironically he started squealing and crying after someone voted his article down. Talk about the people who won't follow their own suggestions. :)

                              C 1 Reply Last reply
                              0
                              • R Rajesh R Subramanian

                                When I asked him not to low-vote all the posts, he said that we must look at things the "Monty Python" way. So, Mark replied with a Monty python quote. He asked me if I earn money with votes and said that I am partial towards high votes. Later on, ironically he started squealing and crying after someone voted his article down. Talk about the people who won't follow their own suggestions. :)

                                C Offline
                                C Offline
                                CPallini
                                wrote on last edited by
                                #20

                                I think he is a CodeGuru's infiltrator whoose purpose is defaming CodeProject MVPs' honor :laugh:

                                If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                                This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                                [My articles]

                                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