PDA

View Full Version : Finding angles in a rectangle??


BeWare
02-08-2001, 11:03 AM
With good help from this site I have made a rectangle with all its corners dragable (I am so proud :)). My Script gets the x and y positions of the three corners, so I should be able to calculate everything I could ever want from my rectangle. But the Math Object doesn't contain a method to calculate the inverse Sinus. This makes it very hard to get the angles.
Is there inverse Sinus in ActionScript??
...or, is there some way of simulating this??

I think this is the same problem premise is haveing!?!

BeWare
02-08-2001, 11:13 AM
I meant triangle. (It's not very hard to find the angles in a rectangle. :)) (English is NOT my native lanuage. That is my excuse)

Marx
02-09-2001, 05:39 PM
Hi...
Maths, arggggghhh!!!
As you can probably tell I'm not exactly fanatical about Maths so instead i'll direct you to some Math links:

http://www.were-here.com/forum/Articles/FlashMath101/links/index.shtml

http://www.were-here.com/forum/Articles/FlashMath101/index.shtml

Hope this helps.

Jesse
02-10-2001, 12:45 PM
Maths.asin(number);
that will give you the inverse sine.

Cheers

Jesse