Results 1 to 7 of 7

Math Help - calculating angle

  1. #1
    Newbie
    Joined
    Aug 2007
    Posts
    2

    calculating angle

    hello
    having position of 3 point i want to calculate the angle between them
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Global Moderator

    Joined
    Nov 2005
    From
    New York City
    Posts
    10,616
    Thanks
    9
    Quote Originally Posted by SuperEletcric View Post
    hello
    having position of 3 point i want to calculate the angle between them
    Given points A,B,C.

    1)Find vector AB
    2)Find vector AC
    3)Find ||AB|| (the length)
    4)Find ||AC|| (the length)
    5)Find ||AB||*||AC|| (their product)
    6)Find AB*AC (dot product)
    7)Find #5 divided by #6
    8)Take the arc cosine of #7
    Follow Math Help Forum on Facebook and Google+

  3. #3
    MHF Contributor
    Joined
    Apr 2005
    Posts
    1,631
    Quote Originally Posted by SuperEletcric View Post
    hello
    having position of 3 point i want to calculate the angle between them
    If in 2D only, plot the 3 points on the same rectangular axes, so that you'd know how to get the angle between the two rays. For simplicity, put the corner of the angle on the origin (0,0).

    Use the slopes of the rays. The slope of a line is the tangent of the angle made by the line with the horizontal axis, so the angle of the line with the horizontal axis is the arctangent of the slope.

    So the angle between the two rays is actan(m1) minus arctan(m2).

    Be careful with the signs of the slopes m1 and m2.
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Super Member

    Joined
    May 2006
    From
    Lexington, MA (USA)
    Posts
    11,707
    Thanks
    627
    Hello, SuperEletcric!

    Another approach . . .


    Having the positions of 3 points,
    calculate the angles of the triangle.
    Suppose the points are: . A(x_1,y_1),\:B(x_2,y_2),\:C(x_3,y_3)

    Let's find angle A \:=\:\angle BAC

    Use the Slope Formula to find: . m_{_{AB}} \text{ and }m_{_{AC}}

    Then: . \tan A \:=\:\left|\frac{m_{_{AB}} - m_{_{AC}}}{1 + m_{_{AB}}m_{_{AC}}}\right|

    Follow Math Help Forum on Facebook and Google+

  5. #5
    MHF Contributor

    Joined
    Aug 2006
    Posts
    18,610
    Thanks
    1576
    Awards
    1
    Any three non-collinear points determine a triangle, even in \Re^3.
    Hence we have three angles. If A, B, & C are the three points then <br />
m\left( {\angle ABC} \right) = \arccos \left( {\frac{{{\overrightarrow {BA}  \cdot \overrightarrow {BC} } }}{{\left\| {\overrightarrow {BA} } \right\|\left\| {\overrightarrow {BC} } \right\|}}} \right).

    This is exactly what TPH posted above.
    Follow Math Help Forum on Facebook and Google+

  6. #6
    Newbie
    Joined
    Aug 2007
    Posts
    2
    thanx to all
    but i have small problem.
    (finding vectors and doing dot product).
    would you mind solving algorithm for instance for this points : (0,0),(1,1),(1,0)
    Follow Math Help Forum on Facebook and Google+

  7. #7
    Global Moderator

    Joined
    Nov 2005
    From
    New York City
    Posts
    10,616
    Thanks
    9
    Quote Originally Posted by SuperEletcric View Post
    thanx to all
    but i have small problem.
    (finding vectors and doing dot product).
    would you mind solving algorithm for instance for this points : (0,0),(1,1),(1,0)
    The vector from (a,b,c) to (x,y,z) is found by subtracting the endpoints from the starting points:
    (x-a)\bold{i}+(y-b)\bold{j}+(z-c)\bold{k}

    The dot product, (a\bold{i}+b\bold{j}+c\bold{k})\cdot (x\bold{i}+y\bold{j}+z\bold{k})=ax+by+cz
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Calculating an angle in 3D coordinates
    Posted in the Geometry Forum
    Replies: 8
    Last Post: September 6th 2011, 12:15 PM
  2. Calculating an Angle for Artillery
    Posted in the Trigonometry Forum
    Replies: 2
    Last Post: August 21st 2011, 11:15 AM
  3. Calculating an angle of a none right angle triangle
    Posted in the Trigonometry Forum
    Replies: 14
    Last Post: August 19th 2011, 01:42 PM
  4. Calculating work and force on an angle
    Posted in the Trigonometry Forum
    Replies: 1
    Last Post: December 9th 2010, 08:51 AM
  5. Calculating Angle from Coordinates.
    Posted in the Trigonometry Forum
    Replies: 3
    Last Post: February 14th 2007, 02:01 PM

Search Tags


/mathhelpforum @mathhelpforum