Hi,
You have the position of the point in polar coordinates (radius,
angle), so you want to get the point in cartesian (x, y) - this function
converts it. You need the angle in radians though.
It's shorthand for:
x = radius * sin(theta); y = radius * cos(theta);
Where theta = angle * Math.PI / 180
HTH
Glen
Eric E. Dolecki wrote:
Jason,
Could you elaborate please?
Point.polar( length, angle );
I have the angle (say 0 degrees). The length would then be pixels from the
center (ie. radius)?
On Tue, Mar 17, 2009 at 9:53 AM, Merrill, Jason <
[email protected]> wrote:
In AS3, Point.polar()
Jason Merrill
Bank of America | Learning Performance Solutions Instructional
Technology & Media
Monthly meetings on the Adobe Flash platform for rich media experiences -
join the Bank of America Flash Platform Community
-----Original Message-----
From: [email protected] [mailto:
[email protected]] On Behalf Of Eric E. Dolecki
Sent: Tuesday, March 17, 2009 9:17 AM
To: Flash Coders List
Subject: [Flashcoders] Intersection on circle based on angle
I've done this before but can't find my file(s). I am currently googling
but
haven't found the answer yet (I'm sure it's out there, just need to
rediscover it).
I have a circle, registration at 0, 0.
If I have an angle from it's center, I'd like to get x,y where the angle
would intersect with the edge of the circle. I am basically drawing dots
around the outside of a circle (think mixing console knobs with a variable
number of detents).
anyone have something handy?
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders