How to find an intersection between a normal that goes through a vertex and 2 polylines that are on the sides of the polyline containing that vertex?

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











up vote
0
down vote

favorite












This is a little hard to explain, so let's start with a picture:



enter image description here



What I need to do is to find x,y coordinates of the points R1 and R2.



Coordinates of every other point are known.



I am trying to implement this in C#, so the optimal solution would be a function that takes x,y coordinates of known points and calculates x,y coordinates of the unknown points. I tried to combine several methods to solve this, but I failed.



note: there can be a case when the angle α/2 is 90°







share|cite|improve this question























    up vote
    0
    down vote

    favorite












    This is a little hard to explain, so let's start with a picture:



    enter image description here



    What I need to do is to find x,y coordinates of the points R1 and R2.



    Coordinates of every other point are known.



    I am trying to implement this in C#, so the optimal solution would be a function that takes x,y coordinates of known points and calculates x,y coordinates of the unknown points. I tried to combine several methods to solve this, but I failed.



    note: there can be a case when the angle α/2 is 90°







    share|cite|improve this question





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      This is a little hard to explain, so let's start with a picture:



      enter image description here



      What I need to do is to find x,y coordinates of the points R1 and R2.



      Coordinates of every other point are known.



      I am trying to implement this in C#, so the optimal solution would be a function that takes x,y coordinates of known points and calculates x,y coordinates of the unknown points. I tried to combine several methods to solve this, but I failed.



      note: there can be a case when the angle α/2 is 90°







      share|cite|improve this question











      This is a little hard to explain, so let's start with a picture:



      enter image description here



      What I need to do is to find x,y coordinates of the points R1 and R2.



      Coordinates of every other point are known.



      I am trying to implement this in C#, so the optimal solution would be a function that takes x,y coordinates of known points and calculates x,y coordinates of the unknown points. I tried to combine several methods to solve this, but I failed.



      note: there can be a case when the angle α/2 is 90°









      share|cite|improve this question










      share|cite|improve this question




      share|cite|improve this question









      asked Jul 30 at 13:33









      zoran

      101




      101




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Write the implicit equations of the lines $AB$ and $BC$, in the form $ax+by+c=0$, where the coefficients are normalized so that $a^2+b^2=1$. Then add the two equations to get the equation of the bissectrix.



          You will find the intersecting segments by plugging the endpoint coordinates in that equation and observing a change of sign.






          share|cite|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: "69"
            ;
            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: true,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            noCode: true, onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );








             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2867021%2fhow-to-find-an-intersection-between-a-normal-that-goes-through-a-vertex-and-2-po%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            Write the implicit equations of the lines $AB$ and $BC$, in the form $ax+by+c=0$, where the coefficients are normalized so that $a^2+b^2=1$. Then add the two equations to get the equation of the bissectrix.



            You will find the intersecting segments by plugging the endpoint coordinates in that equation and observing a change of sign.






            share|cite|improve this answer

























              up vote
              0
              down vote













              Write the implicit equations of the lines $AB$ and $BC$, in the form $ax+by+c=0$, where the coefficients are normalized so that $a^2+b^2=1$. Then add the two equations to get the equation of the bissectrix.



              You will find the intersecting segments by plugging the endpoint coordinates in that equation and observing a change of sign.






              share|cite|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                Write the implicit equations of the lines $AB$ and $BC$, in the form $ax+by+c=0$, where the coefficients are normalized so that $a^2+b^2=1$. Then add the two equations to get the equation of the bissectrix.



                You will find the intersecting segments by plugging the endpoint coordinates in that equation and observing a change of sign.






                share|cite|improve this answer













                Write the implicit equations of the lines $AB$ and $BC$, in the form $ax+by+c=0$, where the coefficients are normalized so that $a^2+b^2=1$. Then add the two equations to get the equation of the bissectrix.



                You will find the intersecting segments by plugging the endpoint coordinates in that equation and observing a change of sign.







                share|cite|improve this answer













                share|cite|improve this answer



                share|cite|improve this answer











                answered Jul 30 at 13:44









                Yves Daoust

                110k665203




                110k665203






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2867021%2fhow-to-find-an-intersection-between-a-normal-that-goes-through-a-vertex-and-2-po%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Comments

                    Popular posts from this blog

                    What is the equation of a 3D cone with generalised tilt?

                    Color the edges and diagonals of a regular polygon

                    Relationship between determinant of matrix and determinant of adjoint?