Summary
This chapter covered nearly all the trigonometry you will need for animating in ActionScript. There is one principle, called The Law of Cosines, that I left out for now, as it is a lot more complex and deals with triangles that are not right triangles (they have no angle measuring 90 degrees). If you are now addicted to trig and just can’t get enough, you can jump ahead to Chapter 14, which covers inverse kinematics, where trig really comes in handy.
But, for now, you know about sine, cosine, and tangent and their opposites: arcsine, arccosine, and arctangent, as well as the ActionScript methods to calculate each one.
Best of all, you got some hands-on experience using most of them in ActionScript, with some of the most common real-life uses of them. As you move through the book, you’ll see many more ways in which these techniques become useful. But you now have a solid footing with the concepts, and when you come across those examples, you should have no problem understanding them or how they work.
The next chapter covers some of the more common rendering techniques for getting graphics on the screen, including the all-important drawing API. As you go through that chapter, see if you can find ways to use the rendering methods to visualize some of the trig functions you’ve learned here. I’m sure you’ll have no trouble creating some beautiful pictures or animations with trigonometry.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
Rights and permissions
Copyright information
© 2006 Keith Peters
About this chapter
Cite this chapter
(2006). Trigonometry for Animation. In: Foundation ActionScript Animation. Apress. https://doi.org/10.1007/978-1-4302-0081-9_3
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0081-9_3
Publisher Name: Apress
Print ISBN: 978-1-59059-518-3
Online ISBN: 978-1-4302-0081-9
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books