Trigonometry for Flash: A Visual Reference
Posted by Will | Filed under Adobe Flash, Tutorials
Trigonometry is something any aspiring Flash developer should learn. It is the cornerstone of becoming better at manipulating graphics purely with code.
I am certainly not a math guru by any means. I often find myself having to flip through a book or dig through previous projects to find the formula for getting the angle of a vector or the distance between 2 points etc. So I have created an animated reference to trigonometry within the Flash coordinate space. This is very much for my own reference but I think others will find it useful.
As stated this is a reference, not a detailed tutorial. If you would like to learn more about trigonometry in Flash i highly recommend Actionscript 3.0 Animation by Keith Peters.
If I have missed something or there is a useful formula you think I should add leave me a comment below. Feel free to bookmark this page for future reference.




August 12th, 2008 at 7:11 am
I’m pretty sure that 90 degrees is at the top of the circle and not the bottom.
August 12th, 2008 at 9:52 am
[...] Trigonometry for Flash: A Visual Reference [...]
August 12th, 2008 at 10:16 am
@Michael: I’m pretty sure 90 degrees is at the bottom because Flash has an inverted Y axis. Up is negative, down is positive.
Good little reference here. I’d also highly recommend Either of the animation books by Keith Peters (basically the same book, but one is for AS2, and one is for AS3).
August 12th, 2008 at 10:17 pm
Very nice.
Perhaps you could make it interactive so we can drag around the point on the circle?
August 18th, 2008 at 3:02 am
[...] Trigonometry for Flash: A Visual Reference by Ahrooga [...]