A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Determine angle between 3 points.

  1. #1
    Bearded (M|G)od MyFriendIsATaco's Avatar
    Join Date
    Dec 2002
    Location
    Awesomeville.
    Posts
    3,045

    Determine angle between 3 points.

    I have 3 points, A, B, and C. They are placed to form angle ABC. How can I calculate what that angle is? I will have x and y positions for all points. Mind you: NOT a right triangle.

    I tried Googling about it, and didn't really find anything, so any insight would be awesome. My highschool math is a little dusty! :P

    Many thanks!

  2. #2
    OOP is one letter from OOPS kortex's Avatar
    Join Date
    Aug 2005
    Location
    New Hope, PA
    Posts
    2,668
    Jeremy Wischusen
    Flash - Flex - LAMP - Web Developer Purple Inc
    AS OOP FAQ-Best Practices Thread | Flashkit OOP Tutorials | Purple Inc (day job) | Blog


  3. #3
    When in doubt ask Eager Beaver's Avatar
    Join Date
    Feb 2007
    Location
    Planet Earth
    Posts
    911
    Please see this FLA.
    Properties of a Triangle.
    <signature removed by admin>

  4. #4
    I'm curious
    Join Date
    Feb 2007
    Location
    world
    Posts
    37
    The maths formula for the included angle is:
    Code:
    ca*ca=ab*ab+bc*bc-2*ab*bc*Math.cos(B);
    where B is in radians.
    B in degrees is:
    Code:
    Bdeg=Brad*180/Math.PI;
    Don't hate! Love!

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center