find a formula to cacluate if a moving object goes to a target












0












$begingroup$


I am struggling to find a formula to calculate if a moving object goes towards a certain direction. I have $P_1$, which is the current position $(x_1, y_1)$, and its direction angle. I also have the position of a target $(x_2, y_2)$. How can I calculate if the currently moving object goes toward the target position?










share|cite|improve this question











$endgroup$

















    0












    $begingroup$


    I am struggling to find a formula to calculate if a moving object goes towards a certain direction. I have $P_1$, which is the current position $(x_1, y_1)$, and its direction angle. I also have the position of a target $(x_2, y_2)$. How can I calculate if the currently moving object goes toward the target position?










    share|cite|improve this question











    $endgroup$















      0












      0








      0





      $begingroup$


      I am struggling to find a formula to calculate if a moving object goes towards a certain direction. I have $P_1$, which is the current position $(x_1, y_1)$, and its direction angle. I also have the position of a target $(x_2, y_2)$. How can I calculate if the currently moving object goes toward the target position?










      share|cite|improve this question











      $endgroup$




      I am struggling to find a formula to calculate if a moving object goes towards a certain direction. I have $P_1$, which is the current position $(x_1, y_1)$, and its direction angle. I also have the position of a target $(x_2, y_2)$. How can I calculate if the currently moving object goes toward the target position?







      mathematical-physics






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Jan 31 at 15:36









      jvdhooft

      5,65961641




      5,65961641










      asked Jan 31 at 15:21









      AodyAody

      1




      1






















          1 Answer
          1






          active

          oldest

          votes


















          0












          $begingroup$

          More information is necessary to answer this question. If object is moving in a vacuum with no external forces pressing on it, then it will simply keep moving in a straight line in the direction given by the direction angle (which I will call $theta$).



          It will hit the target if the vector (x2,y2)-(x1,y1) is proportional (by a positive constant!) to the vector $(cos(theta),sin(theta)).$



          If the object is subject to gravity, drag, etc... then the problem becomes more complicated and we need more information (if nothing else we would need the initial velocity of the object). One could solve the problem:



          Given initial object (x1,y1) subject only to gravity, target position (x2,y2), the mass of the moving object and the direction angle, how much force is necessary to hit (x2,y2) although this places constraints on the possible initial angle (e.g. we could not shoot the object downward or backward and have it hit the target).






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            Thanks for answering. The moving object is a car. How can I know if vector (x2,y2)-(x1,y1) is proportional to the vector (cos(θ),sin(θ)).
            $endgroup$
            – Aody
            Jan 31 at 16:45












          • $begingroup$
            Calculate both vectors (find actual numbers and plot them in standard position). If you don't see it at that point, I would recommend consulting your textbook for an example! The whole point of this problem as stated is to check if you understand what all of these vector operations (addition, subtraction, angles, etc...) mean. See: en.wikipedia.org/wiki/Euclidean_vector#Addition_and_subtraction and look at the pictures
            $endgroup$
            – marlow
            Jan 31 at 17:20












          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          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%2f3095005%2ffind-a-formula-to-cacluate-if-a-moving-object-goes-to-a-target%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0












          $begingroup$

          More information is necessary to answer this question. If object is moving in a vacuum with no external forces pressing on it, then it will simply keep moving in a straight line in the direction given by the direction angle (which I will call $theta$).



          It will hit the target if the vector (x2,y2)-(x1,y1) is proportional (by a positive constant!) to the vector $(cos(theta),sin(theta)).$



          If the object is subject to gravity, drag, etc... then the problem becomes more complicated and we need more information (if nothing else we would need the initial velocity of the object). One could solve the problem:



          Given initial object (x1,y1) subject only to gravity, target position (x2,y2), the mass of the moving object and the direction angle, how much force is necessary to hit (x2,y2) although this places constraints on the possible initial angle (e.g. we could not shoot the object downward or backward and have it hit the target).






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            Thanks for answering. The moving object is a car. How can I know if vector (x2,y2)-(x1,y1) is proportional to the vector (cos(θ),sin(θ)).
            $endgroup$
            – Aody
            Jan 31 at 16:45












          • $begingroup$
            Calculate both vectors (find actual numbers and plot them in standard position). If you don't see it at that point, I would recommend consulting your textbook for an example! The whole point of this problem as stated is to check if you understand what all of these vector operations (addition, subtraction, angles, etc...) mean. See: en.wikipedia.org/wiki/Euclidean_vector#Addition_and_subtraction and look at the pictures
            $endgroup$
            – marlow
            Jan 31 at 17:20
















          0












          $begingroup$

          More information is necessary to answer this question. If object is moving in a vacuum with no external forces pressing on it, then it will simply keep moving in a straight line in the direction given by the direction angle (which I will call $theta$).



          It will hit the target if the vector (x2,y2)-(x1,y1) is proportional (by a positive constant!) to the vector $(cos(theta),sin(theta)).$



          If the object is subject to gravity, drag, etc... then the problem becomes more complicated and we need more information (if nothing else we would need the initial velocity of the object). One could solve the problem:



          Given initial object (x1,y1) subject only to gravity, target position (x2,y2), the mass of the moving object and the direction angle, how much force is necessary to hit (x2,y2) although this places constraints on the possible initial angle (e.g. we could not shoot the object downward or backward and have it hit the target).






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            Thanks for answering. The moving object is a car. How can I know if vector (x2,y2)-(x1,y1) is proportional to the vector (cos(θ),sin(θ)).
            $endgroup$
            – Aody
            Jan 31 at 16:45












          • $begingroup$
            Calculate both vectors (find actual numbers and plot them in standard position). If you don't see it at that point, I would recommend consulting your textbook for an example! The whole point of this problem as stated is to check if you understand what all of these vector operations (addition, subtraction, angles, etc...) mean. See: en.wikipedia.org/wiki/Euclidean_vector#Addition_and_subtraction and look at the pictures
            $endgroup$
            – marlow
            Jan 31 at 17:20














          0












          0








          0





          $begingroup$

          More information is necessary to answer this question. If object is moving in a vacuum with no external forces pressing on it, then it will simply keep moving in a straight line in the direction given by the direction angle (which I will call $theta$).



          It will hit the target if the vector (x2,y2)-(x1,y1) is proportional (by a positive constant!) to the vector $(cos(theta),sin(theta)).$



          If the object is subject to gravity, drag, etc... then the problem becomes more complicated and we need more information (if nothing else we would need the initial velocity of the object). One could solve the problem:



          Given initial object (x1,y1) subject only to gravity, target position (x2,y2), the mass of the moving object and the direction angle, how much force is necessary to hit (x2,y2) although this places constraints on the possible initial angle (e.g. we could not shoot the object downward or backward and have it hit the target).






          share|cite|improve this answer









          $endgroup$



          More information is necessary to answer this question. If object is moving in a vacuum with no external forces pressing on it, then it will simply keep moving in a straight line in the direction given by the direction angle (which I will call $theta$).



          It will hit the target if the vector (x2,y2)-(x1,y1) is proportional (by a positive constant!) to the vector $(cos(theta),sin(theta)).$



          If the object is subject to gravity, drag, etc... then the problem becomes more complicated and we need more information (if nothing else we would need the initial velocity of the object). One could solve the problem:



          Given initial object (x1,y1) subject only to gravity, target position (x2,y2), the mass of the moving object and the direction angle, how much force is necessary to hit (x2,y2) although this places constraints on the possible initial angle (e.g. we could not shoot the object downward or backward and have it hit the target).







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Jan 31 at 15:36









          marlowmarlow

          254




          254












          • $begingroup$
            Thanks for answering. The moving object is a car. How can I know if vector (x2,y2)-(x1,y1) is proportional to the vector (cos(θ),sin(θ)).
            $endgroup$
            – Aody
            Jan 31 at 16:45












          • $begingroup$
            Calculate both vectors (find actual numbers and plot them in standard position). If you don't see it at that point, I would recommend consulting your textbook for an example! The whole point of this problem as stated is to check if you understand what all of these vector operations (addition, subtraction, angles, etc...) mean. See: en.wikipedia.org/wiki/Euclidean_vector#Addition_and_subtraction and look at the pictures
            $endgroup$
            – marlow
            Jan 31 at 17:20


















          • $begingroup$
            Thanks for answering. The moving object is a car. How can I know if vector (x2,y2)-(x1,y1) is proportional to the vector (cos(θ),sin(θ)).
            $endgroup$
            – Aody
            Jan 31 at 16:45












          • $begingroup$
            Calculate both vectors (find actual numbers and plot them in standard position). If you don't see it at that point, I would recommend consulting your textbook for an example! The whole point of this problem as stated is to check if you understand what all of these vector operations (addition, subtraction, angles, etc...) mean. See: en.wikipedia.org/wiki/Euclidean_vector#Addition_and_subtraction and look at the pictures
            $endgroup$
            – marlow
            Jan 31 at 17:20
















          $begingroup$
          Thanks for answering. The moving object is a car. How can I know if vector (x2,y2)-(x1,y1) is proportional to the vector (cos(θ),sin(θ)).
          $endgroup$
          – Aody
          Jan 31 at 16:45






          $begingroup$
          Thanks for answering. The moving object is a car. How can I know if vector (x2,y2)-(x1,y1) is proportional to the vector (cos(θ),sin(θ)).
          $endgroup$
          – Aody
          Jan 31 at 16:45














          $begingroup$
          Calculate both vectors (find actual numbers and plot them in standard position). If you don't see it at that point, I would recommend consulting your textbook for an example! The whole point of this problem as stated is to check if you understand what all of these vector operations (addition, subtraction, angles, etc...) mean. See: en.wikipedia.org/wiki/Euclidean_vector#Addition_and_subtraction and look at the pictures
          $endgroup$
          – marlow
          Jan 31 at 17:20




          $begingroup$
          Calculate both vectors (find actual numbers and plot them in standard position). If you don't see it at that point, I would recommend consulting your textbook for an example! The whole point of this problem as stated is to check if you understand what all of these vector operations (addition, subtraction, angles, etc...) mean. See: en.wikipedia.org/wiki/Euclidean_vector#Addition_and_subtraction and look at the pictures
          $endgroup$
          – marlow
          Jan 31 at 17:20


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Mathematics Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          Use MathJax to format equations. MathJax reference.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3095005%2ffind-a-formula-to-cacluate-if-a-moving-object-goes-to-a-target%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          MongoDB - Not Authorized To Execute Command

          How to fix TextFormField cause rebuild widget in Flutter

          in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith