|
-
self-portrait
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?
Last edited by Kianis; 09-24-2004 at 06:19 PM.
-
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
-
self-portrait
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|