Search tutorials
Converting from polar to Cartesian coordinates.
Normally we use Cartesian coordinates. There is no polar coordinates in Flash so we must convert polar to Cartesian coordinates.
To convert we should find X, Y (red lines on illustration). To get them we must project vector p on Cartesian axes,
using following expression:
x = p*Math.cos(f)
y = p*Math.sin(f)
| » Level Intermediate |
|
Added: 2004-01-11 Rating: 9 Votes: 268 |
| » Author |
| Sergei A. Kornev web-designer from Saint-Petersburg, Russia. More information available on site: www.puehue.com. |
| » Download |
| Download the files used in this tutorial. |
| Download (94 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!