Calculate coordinates of third point in a triangle (2D) knowing 2 points coordinates [closed]












0












$begingroup$


Triangle



I have 2 points v1 and v2. I have a length B. I can work out length A and therefore C if necessary. My aim is to find the coordinates of v3. I have tried a few different ideas but can't get the correct solution. Any ideas? Thank you.



Solution1



enter image description here










share|cite|improve this question











$endgroup$



closed as unclear what you're asking by Namaste, user10354138, Paul Frost, Leucippus, Cesareo Dec 15 '18 at 0:58


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.























    0












    $begingroup$


    Triangle



    I have 2 points v1 and v2. I have a length B. I can work out length A and therefore C if necessary. My aim is to find the coordinates of v3. I have tried a few different ideas but can't get the correct solution. Any ideas? Thank you.



    Solution1



    enter image description here










    share|cite|improve this question











    $endgroup$



    closed as unclear what you're asking by Namaste, user10354138, Paul Frost, Leucippus, Cesareo Dec 15 '18 at 0:58


    Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.





















      0












      0








      0





      $begingroup$


      Triangle



      I have 2 points v1 and v2. I have a length B. I can work out length A and therefore C if necessary. My aim is to find the coordinates of v3. I have tried a few different ideas but can't get the correct solution. Any ideas? Thank you.



      Solution1



      enter image description here










      share|cite|improve this question











      $endgroup$




      Triangle



      I have 2 points v1 and v2. I have a length B. I can work out length A and therefore C if necessary. My aim is to find the coordinates of v3. I have tried a few different ideas but can't get the correct solution. Any ideas? Thank you.



      Solution1



      enter image description here







      triangles






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Dec 14 '18 at 19:42









      Namaste

      1




      1










      asked Dec 14 '18 at 19:29









      iainiain

      32




      32




      closed as unclear what you're asking by Namaste, user10354138, Paul Frost, Leucippus, Cesareo Dec 15 '18 at 0:58


      Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









      closed as unclear what you're asking by Namaste, user10354138, Paul Frost, Leucippus, Cesareo Dec 15 '18 at 0:58


      Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
























          2 Answers
          2






          active

          oldest

          votes


















          0












          $begingroup$

          Your solution is almost correct, except the definitions of $T$ and $Q$ (they should be the other way around). This is because alpha is the angle between the vertical and $B$. To check, use $V_1=(0,0)$ and $V_2=(3,0)$. The final coordinates have to be $(3,3)$. From programming point of view, use np.atan2 instead. Then you don't need to calculate $A$. Also, note that you can go in the other direction as well ($V_3$ could be the other side of the $V_1 V_2$ line)






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            Thank you, that should work.
            $endgroup$
            – iain
            Dec 14 '18 at 20:10



















          0












          $begingroup$

          The unit vector parallel to edge $v_1v_2$ is given by $displaystylehat n=frac{vec v_2-vec v_1}{|vec v_2-vec v_1|}=(alpha,beta)$. The direction ratios of the unit vector perpendicular to $hat n$ is given by $hat m=(pmbeta,mpalpha)$. The position vector of vertex $v_3,vec v_3=vec v_2+Bhat m$. Note that there are two answers for $vec v_3$.






          share|cite|improve this answer









          $endgroup$




















            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0












            $begingroup$

            Your solution is almost correct, except the definitions of $T$ and $Q$ (they should be the other way around). This is because alpha is the angle between the vertical and $B$. To check, use $V_1=(0,0)$ and $V_2=(3,0)$. The final coordinates have to be $(3,3)$. From programming point of view, use np.atan2 instead. Then you don't need to calculate $A$. Also, note that you can go in the other direction as well ($V_3$ could be the other side of the $V_1 V_2$ line)






            share|cite|improve this answer









            $endgroup$













            • $begingroup$
              Thank you, that should work.
              $endgroup$
              – iain
              Dec 14 '18 at 20:10
















            0












            $begingroup$

            Your solution is almost correct, except the definitions of $T$ and $Q$ (they should be the other way around). This is because alpha is the angle between the vertical and $B$. To check, use $V_1=(0,0)$ and $V_2=(3,0)$. The final coordinates have to be $(3,3)$. From programming point of view, use np.atan2 instead. Then you don't need to calculate $A$. Also, note that you can go in the other direction as well ($V_3$ could be the other side of the $V_1 V_2$ line)






            share|cite|improve this answer









            $endgroup$













            • $begingroup$
              Thank you, that should work.
              $endgroup$
              – iain
              Dec 14 '18 at 20:10














            0












            0








            0





            $begingroup$

            Your solution is almost correct, except the definitions of $T$ and $Q$ (they should be the other way around). This is because alpha is the angle between the vertical and $B$. To check, use $V_1=(0,0)$ and $V_2=(3,0)$. The final coordinates have to be $(3,3)$. From programming point of view, use np.atan2 instead. Then you don't need to calculate $A$. Also, note that you can go in the other direction as well ($V_3$ could be the other side of the $V_1 V_2$ line)






            share|cite|improve this answer









            $endgroup$



            Your solution is almost correct, except the definitions of $T$ and $Q$ (they should be the other way around). This is because alpha is the angle between the vertical and $B$. To check, use $V_1=(0,0)$ and $V_2=(3,0)$. The final coordinates have to be $(3,3)$. From programming point of view, use np.atan2 instead. Then you don't need to calculate $A$. Also, note that you can go in the other direction as well ($V_3$ could be the other side of the $V_1 V_2$ line)







            share|cite|improve this answer












            share|cite|improve this answer



            share|cite|improve this answer










            answered Dec 14 '18 at 19:47









            AndreiAndrei

            13.7k21230




            13.7k21230












            • $begingroup$
              Thank you, that should work.
              $endgroup$
              – iain
              Dec 14 '18 at 20:10


















            • $begingroup$
              Thank you, that should work.
              $endgroup$
              – iain
              Dec 14 '18 at 20:10
















            $begingroup$
            Thank you, that should work.
            $endgroup$
            – iain
            Dec 14 '18 at 20:10




            $begingroup$
            Thank you, that should work.
            $endgroup$
            – iain
            Dec 14 '18 at 20:10











            0












            $begingroup$

            The unit vector parallel to edge $v_1v_2$ is given by $displaystylehat n=frac{vec v_2-vec v_1}{|vec v_2-vec v_1|}=(alpha,beta)$. The direction ratios of the unit vector perpendicular to $hat n$ is given by $hat m=(pmbeta,mpalpha)$. The position vector of vertex $v_3,vec v_3=vec v_2+Bhat m$. Note that there are two answers for $vec v_3$.






            share|cite|improve this answer









            $endgroup$


















              0












              $begingroup$

              The unit vector parallel to edge $v_1v_2$ is given by $displaystylehat n=frac{vec v_2-vec v_1}{|vec v_2-vec v_1|}=(alpha,beta)$. The direction ratios of the unit vector perpendicular to $hat n$ is given by $hat m=(pmbeta,mpalpha)$. The position vector of vertex $v_3,vec v_3=vec v_2+Bhat m$. Note that there are two answers for $vec v_3$.






              share|cite|improve this answer









              $endgroup$
















                0












                0








                0





                $begingroup$

                The unit vector parallel to edge $v_1v_2$ is given by $displaystylehat n=frac{vec v_2-vec v_1}{|vec v_2-vec v_1|}=(alpha,beta)$. The direction ratios of the unit vector perpendicular to $hat n$ is given by $hat m=(pmbeta,mpalpha)$. The position vector of vertex $v_3,vec v_3=vec v_2+Bhat m$. Note that there are two answers for $vec v_3$.






                share|cite|improve this answer









                $endgroup$



                The unit vector parallel to edge $v_1v_2$ is given by $displaystylehat n=frac{vec v_2-vec v_1}{|vec v_2-vec v_1|}=(alpha,beta)$. The direction ratios of the unit vector perpendicular to $hat n$ is given by $hat m=(pmbeta,mpalpha)$. The position vector of vertex $v_3,vec v_3=vec v_2+Bhat m$. Note that there are two answers for $vec v_3$.







                share|cite|improve this answer












                share|cite|improve this answer



                share|cite|improve this answer










                answered Dec 14 '18 at 19:39









                Shubham JohriShubham Johri

                5,558818




                5,558818















                    Popular posts from this blog

                    How to change which sound is reproduced for terminal bell?

                    Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                    Can I use Tabulator js library in my java Spring + Thymeleaf project?