A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: simple triangle question....i hope

  1. #1
    Senior Member
    Join Date
    Sep 2000
    Posts
    120

    simple triangle question....i hope

    if i know 2 points of a triangle and the lengths of all three sides, there must be a way to caculate the third point.....?

    any help would be greatly appreciated as i am now behind schedule trying to figure this out.

    cheers.
    peace.
    curtis.

    curtis@SoFierce.com

    www.sofierce.com

  2. #2
    Senior Member
    Join Date
    May 2001
    Posts
    1,838
    Here is the fla explaining the calculation:
    Attached Files Attached Files

  3. #3
    Junior Member
    Join Date
    Jun 2003
    Posts
    6
    man, could somebody explain this in stupid terms. i need this for a inverse kinematics solution but don't understand any of it

  4. #4
    Senior Member
    Join Date
    May 2002
    Location
    Sioux Falls, SD
    Posts
    1,155
    maybe i dont understand your question but if by points you mean the degrees of each angle you can just subtract 180 by the sum of the two other points:

    A = 60
    B = 50
    C = ??

    180 - 60+50 = 70

    C = 70

    like i said i might be misunderstanding your question.

  5. #5
    Junior Member
    Join Date
    Jan 2002
    Posts
    16
    In the triangle you can calculate all the values (angles and sides) if you know at least:

    1. Two sides and any angle
    2. Two angles and a side
    3. All three sides

    You can see it visually here (sorry not in english, but iam sure you ll understand, it also calculates square)
    http://www.meele.com/nd/works/trijsturis.html

  6. #6
    Senior Member
    Join Date
    Sep 2000
    Posts
    108
    Hmm, I think that url could have answered my question, but it doesn't work anymore...

    I know two sides of a triangle, one angle is 90d, and I want to know the other angles... Could anyone help me out with the formula?

    __
    @ndre

  7. #7
    Senior Member
    Join Date
    May 2001
    Posts
    1,838
    I think I did not explain well in the previous the fla I post.

    Here is a new fla, I add some explanation. The diagram is in the library symbol "tutor". There I explain what is R and what is H;

    The calculation is in the first fram "onEnterFrame" block.
    Attached Files Attached Files

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