dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Finding a set number of evenly spaced points on a cicle.

  1. #1
    Goooold Member!
    Join Date
    Oct 2002
    Posts
    259

    Finding a set number of evenly spaced points on a cicle.

    I need to know how to find the xy coordinants of a given number of evenly spaced points on a cirle with a given radius.

  2. #2
    Junior Member
    Join Date
    May 2003
    Location
    Krasnoyarsk
    Posts
    1
    Well, suppose you have to evenly space N points on a circle with center at (0,0) and radius R. The coordinates are xk = R*cos(2*Pi*k/N) and yk = R*sin(2*Pi*k/N) for k = 0, 1, ..., N-1. If you wish to center the circle in (xx,yy), just add xx to all xk coordinates, and yy to all yk coordinates. Here Pi(), sin() and cos() are built-in ActionScript (Math) functions.

    Arcady

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center