Notices
Results 1 to 4 of 4

Thread: given 2 points, calculate the angle

  1. #1 given 2 points, calculate the angle 
    Forum Sophomore
    Join Date
    Oct 2007
    Posts
    115
    If I were given two points (x,y) and (x',y'), how can I determine the angle they form? Let's assume that (x,y) is the vertex of the angle, and the other line the angle is to be measured from is (x+1,y). If the angle is to be defined by the area swept from (x+1,y), pivoting around (x,y) is a counterclockwise direction, and reaching the line connecting (x,y) and (x',y'), how would one calculate the angle?


    Reply With Quote  
     

  2.  
     

  3. #2 Re: given 2 points, calculate the angle 
    . DrRocket's Avatar
    Join Date
    Aug 2008
    Posts
    5,486
    Quote Originally Posted by gib65
    If I were given two points (x,y) and (x',y'), how can I determine the angle they form? Let's assume that (x,y) is the vertex of the angle, and the other line the angle is to be measured from is (x+1,y). If the angle is to be defined by the area swept from (x+1,y), pivoting around (x,y) is a counterclockwise direction, and reaching the line connecting (x,y) and (x',y'), how would one calculate the angle?
    Two points do not determine an angle, they determine a line.

    If you mean the angle that is determined by the two points, plus the origin then that is quite a different thing. It might help to recognize that the dot product of two vectors is the product of their lengths and the cosine of the angle between them.


    Reply With Quote  
     

  4. #3  
    Forum Sophomore
    Join Date
    Oct 2007
    Posts
    115
    Quote Originally Posted by Author
    Two points do not determine an angle, they determine a line.
    Well, why don't we add the point (x+1,y) like I said

    Quote Originally Posted by Author
    It might help to recognize that the dot product of two vectors is the product of their lengths and the cosine of the angle between them.
    Thank you kindly :-D
    Reply With Quote  
     

  5. #4  
    . DrRocket's Avatar
    Join Date
    Aug 2008
    Posts
    5,486
    Quote Originally Posted by gib65
    Quote Originally Posted by Author
    Two points do not determine an angle, they determine a line.
    Well, why don't we add the point (x+1,y) like I said
    Because that is not what you stated in the first sentence as being the basic problem. You additional note created quite a different problem, though in this case one that is well-defined and solvable by elementary means.

    To do mathematics you need to pay attention to very strict logical rigor. That is a fundamental piece of the game.
    Reply With Quote  
     

Bookmarks
Bookmarks
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •