A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: getting length (image attached)

  1. #1
    self-portrait Kianis's Avatar
    Join Date
    Feb 2004
    Location
    Stockholm, Sweden
    Posts
    425

    getting length (image attached)

    To keep it short: How can I get the value (length) of b?
    All other variables are known. Is it even possible?
    Attached Images Attached Images
    Last edited by Kianis; 09-24-2004 at 06:19 PM.

  2. #2
    Senior Member
    Join Date
    Jul 2000
    Location
    Sydney, Australia
    Posts
    486
    have a look at my new diagram attached. although you never marked it, im assuming that angle ABC is a right angle? if so here is the answer:

    DBC = 90-w
    therefore BDC = 180-v-(90-w)...angle sum of triangle BDC
    BDC = 90-(v-w)

    by the sine rule:
    a/sin(BDC) = b/sin(DBC)
    a/sin[90-(v-w)] = b/sin(90-w)
    a/cos(v-w) = b/cos(w)

    therefore b = a.cos(w)/cos(v-w)

    if you are putting this in flash, make sure to change your v and w into radians by /180*PI
    Attached Images Attached Images

  3. #3
    self-portrait Kianis's Avatar
    Join Date
    Feb 2004
    Location
    Stockholm, Sweden
    Posts
    425
    Thank you very much! ^^

    It was quite important to find a solution fast so I posted
    my problem over at actionscript.org too.
    Here is the thread: http://www.actionscript.org/forums/s...d.php3?t=55409.

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