After seeing Jason's mail, I notice I should add that the angle is
supposed to be in radians (i.e., degrees / 180 * Math.PI). However, he
already provided a convenient set of functions, so you probably don't
need that anymore... :)

Mark


On Tue, Mar 17, 2009 at 3:50 PM, Mark Winterhalder <[email protected]> wrote:
> On Tue, Mar 17, 2009 at 2:17 PM, Eric E. Dolecki <[email protected]> wrote:
>> 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?
>
> var x : Number = Math.cos( angle ) * radius;
> var y : Number = Math.sin( angle ) * radius;
>
> ...where the angle is measured from the positive X axis.
>
> This is from memory, it might go into the wrong direction. If so, then
> simply add a minus in front of the y calculation.
>
> Mark
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to