How can I project a vector onto a plane from a particular perspective?

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











up vote
0
down vote

favorite












I have the normal of a plane and a vector. I want to project this vector onto the plane from a particular perspective (top-down).



Because I'm terrible at describing math terms, here are pictures of my problem.



The teal-blue line is what I'm currently calculating by doing a standard projection onto the plane, which is not what I want. It is the red line being projected onto the plane the capsule is standing on. It's hard to tell from the picture, but the red line is a flat vector and only spans the x / z axis.



View from an angle



As expected, a view directly onto the plane shows the red line is being projected - but not how I want.



View directly onto plane



What I want is to project the red line onto the plane from directly above. So from the point of view attached below the red line should be projected onto the plane, but from the top-down perspective - as you can see, this is different than regular projection (the teal-blue line).



Top down view



Hopefully I've described my question properly, any direction is greatly appreciated!







share|cite|improve this question


























    up vote
    0
    down vote

    favorite












    I have the normal of a plane and a vector. I want to project this vector onto the plane from a particular perspective (top-down).



    Because I'm terrible at describing math terms, here are pictures of my problem.



    The teal-blue line is what I'm currently calculating by doing a standard projection onto the plane, which is not what I want. It is the red line being projected onto the plane the capsule is standing on. It's hard to tell from the picture, but the red line is a flat vector and only spans the x / z axis.



    View from an angle



    As expected, a view directly onto the plane shows the red line is being projected - but not how I want.



    View directly onto plane



    What I want is to project the red line onto the plane from directly above. So from the point of view attached below the red line should be projected onto the plane, but from the top-down perspective - as you can see, this is different than regular projection (the teal-blue line).



    Top down view



    Hopefully I've described my question properly, any direction is greatly appreciated!







    share|cite|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have the normal of a plane and a vector. I want to project this vector onto the plane from a particular perspective (top-down).



      Because I'm terrible at describing math terms, here are pictures of my problem.



      The teal-blue line is what I'm currently calculating by doing a standard projection onto the plane, which is not what I want. It is the red line being projected onto the plane the capsule is standing on. It's hard to tell from the picture, but the red line is a flat vector and only spans the x / z axis.



      View from an angle



      As expected, a view directly onto the plane shows the red line is being projected - but not how I want.



      View directly onto plane



      What I want is to project the red line onto the plane from directly above. So from the point of view attached below the red line should be projected onto the plane, but from the top-down perspective - as you can see, this is different than regular projection (the teal-blue line).



      Top down view



      Hopefully I've described my question properly, any direction is greatly appreciated!







      share|cite|improve this question














      I have the normal of a plane and a vector. I want to project this vector onto the plane from a particular perspective (top-down).



      Because I'm terrible at describing math terms, here are pictures of my problem.



      The teal-blue line is what I'm currently calculating by doing a standard projection onto the plane, which is not what I want. It is the red line being projected onto the plane the capsule is standing on. It's hard to tell from the picture, but the red line is a flat vector and only spans the x / z axis.



      View from an angle



      As expected, a view directly onto the plane shows the red line is being projected - but not how I want.



      View directly onto plane



      What I want is to project the red line onto the plane from directly above. So from the point of view attached below the red line should be projected onto the plane, but from the top-down perspective - as you can see, this is different than regular projection (the teal-blue line).



      Top down view



      Hopefully I've described my question properly, any direction is greatly appreciated!









      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Aug 24 at 6:03









      Jendrik Stelzner

      7,57221037




      7,57221037










      asked Aug 19 at 4:50









      Jeffrey Cordova

      52




      52




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          I will assume the capsule is at the origin.



          Pick a point $(x^*,y^*,z^*)$ on the teal-blue line that is not the origin.



          Find the "vertical" line that intersects this point. Concretely, this vertical line is the set of points of the form $(x^*, y, z^*)$ where $y$ is arbitrary.



          You want to find the point where this vertical line intersects the plane. Concretely, you want to find $y'$ such that $(x^*, y', z^*)$ is orthogonal to the normal vector of the plane. This is an equation you can solve.



          Then the "projection" you seek is the line connecting $(x^*, y', z^*)$ to the origin.






          share|cite|improve this answer




















          • Thanks! You led me to the information I needed. Here's the formula that I used: given a normal 'n' and a vector 'v', (nx * vx) + (ny * ?) + (nz * vz) = 0; solve for ?
            – Jeffrey Cordova
            Aug 19 at 16:00











          • @JeffreyCordova: You can use MathJax for formulae. Solving $$ n_x v_x + n_y v_y + n_z v_z = 0$$for $v_y$ is $$v_y = - fracn_x v_x + n_y v_yn_y$$
            – Nominal Animal
            Aug 20 at 3:27










          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%2f2887363%2fhow-can-i-project-a-vector-onto-a-plane-from-a-particular-perspective%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



          accepted










          I will assume the capsule is at the origin.



          Pick a point $(x^*,y^*,z^*)$ on the teal-blue line that is not the origin.



          Find the "vertical" line that intersects this point. Concretely, this vertical line is the set of points of the form $(x^*, y, z^*)$ where $y$ is arbitrary.



          You want to find the point where this vertical line intersects the plane. Concretely, you want to find $y'$ such that $(x^*, y', z^*)$ is orthogonal to the normal vector of the plane. This is an equation you can solve.



          Then the "projection" you seek is the line connecting $(x^*, y', z^*)$ to the origin.






          share|cite|improve this answer




















          • Thanks! You led me to the information I needed. Here's the formula that I used: given a normal 'n' and a vector 'v', (nx * vx) + (ny * ?) + (nz * vz) = 0; solve for ?
            – Jeffrey Cordova
            Aug 19 at 16:00











          • @JeffreyCordova: You can use MathJax for formulae. Solving $$ n_x v_x + n_y v_y + n_z v_z = 0$$for $v_y$ is $$v_y = - fracn_x v_x + n_y v_yn_y$$
            – Nominal Animal
            Aug 20 at 3:27














          up vote
          0
          down vote



          accepted










          I will assume the capsule is at the origin.



          Pick a point $(x^*,y^*,z^*)$ on the teal-blue line that is not the origin.



          Find the "vertical" line that intersects this point. Concretely, this vertical line is the set of points of the form $(x^*, y, z^*)$ where $y$ is arbitrary.



          You want to find the point where this vertical line intersects the plane. Concretely, you want to find $y'$ such that $(x^*, y', z^*)$ is orthogonal to the normal vector of the plane. This is an equation you can solve.



          Then the "projection" you seek is the line connecting $(x^*, y', z^*)$ to the origin.






          share|cite|improve this answer




















          • Thanks! You led me to the information I needed. Here's the formula that I used: given a normal 'n' and a vector 'v', (nx * vx) + (ny * ?) + (nz * vz) = 0; solve for ?
            – Jeffrey Cordova
            Aug 19 at 16:00











          • @JeffreyCordova: You can use MathJax for formulae. Solving $$ n_x v_x + n_y v_y + n_z v_z = 0$$for $v_y$ is $$v_y = - fracn_x v_x + n_y v_yn_y$$
            – Nominal Animal
            Aug 20 at 3:27












          up vote
          0
          down vote



          accepted







          up vote
          0
          down vote



          accepted






          I will assume the capsule is at the origin.



          Pick a point $(x^*,y^*,z^*)$ on the teal-blue line that is not the origin.



          Find the "vertical" line that intersects this point. Concretely, this vertical line is the set of points of the form $(x^*, y, z^*)$ where $y$ is arbitrary.



          You want to find the point where this vertical line intersects the plane. Concretely, you want to find $y'$ such that $(x^*, y', z^*)$ is orthogonal to the normal vector of the plane. This is an equation you can solve.



          Then the "projection" you seek is the line connecting $(x^*, y', z^*)$ to the origin.






          share|cite|improve this answer












          I will assume the capsule is at the origin.



          Pick a point $(x^*,y^*,z^*)$ on the teal-blue line that is not the origin.



          Find the "vertical" line that intersects this point. Concretely, this vertical line is the set of points of the form $(x^*, y, z^*)$ where $y$ is arbitrary.



          You want to find the point where this vertical line intersects the plane. Concretely, you want to find $y'$ such that $(x^*, y', z^*)$ is orthogonal to the normal vector of the plane. This is an equation you can solve.



          Then the "projection" you seek is the line connecting $(x^*, y', z^*)$ to the origin.







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Aug 19 at 5:02









          angryavian

          35k12975




          35k12975











          • Thanks! You led me to the information I needed. Here's the formula that I used: given a normal 'n' and a vector 'v', (nx * vx) + (ny * ?) + (nz * vz) = 0; solve for ?
            – Jeffrey Cordova
            Aug 19 at 16:00











          • @JeffreyCordova: You can use MathJax for formulae. Solving $$ n_x v_x + n_y v_y + n_z v_z = 0$$for $v_y$ is $$v_y = - fracn_x v_x + n_y v_yn_y$$
            – Nominal Animal
            Aug 20 at 3:27
















          • Thanks! You led me to the information I needed. Here's the formula that I used: given a normal 'n' and a vector 'v', (nx * vx) + (ny * ?) + (nz * vz) = 0; solve for ?
            – Jeffrey Cordova
            Aug 19 at 16:00











          • @JeffreyCordova: You can use MathJax for formulae. Solving $$ n_x v_x + n_y v_y + n_z v_z = 0$$for $v_y$ is $$v_y = - fracn_x v_x + n_y v_yn_y$$
            – Nominal Animal
            Aug 20 at 3:27















          Thanks! You led me to the information I needed. Here's the formula that I used: given a normal 'n' and a vector 'v', (nx * vx) + (ny * ?) + (nz * vz) = 0; solve for ?
          – Jeffrey Cordova
          Aug 19 at 16:00





          Thanks! You led me to the information I needed. Here's the formula that I used: given a normal 'n' and a vector 'v', (nx * vx) + (ny * ?) + (nz * vz) = 0; solve for ?
          – Jeffrey Cordova
          Aug 19 at 16:00













          @JeffreyCordova: You can use MathJax for formulae. Solving $$ n_x v_x + n_y v_y + n_z v_z = 0$$for $v_y$ is $$v_y = - fracn_x v_x + n_y v_yn_y$$
          – Nominal Animal
          Aug 20 at 3:27




          @JeffreyCordova: You can use MathJax for formulae. Solving $$ n_x v_x + n_y v_y + n_z v_z = 0$$for $v_y$ is $$v_y = - fracn_x v_x + n_y v_yn_y$$
          – Nominal Animal
          Aug 20 at 3:27












           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2887363%2fhow-can-i-project-a-vector-onto-a-plane-from-a-particular-perspective%23new-answer', 'question_page');

          );

          Post as a guest













































































          這個網誌中的熱門文章

          tkz-euclide: tkzDrawCircle[R] not working

          How to combine Bézier curves to a surface?

          1st Magritte Awards