for (theta = 0; theta <= PI/2; theta+= delta)
{
x = radius * Cos(theta);
y = radius * Sin(theta); [ or y = sqrt(rr - x * x) ]
... the other quadrants are -x,y x,-y -x,-y
}
abing734@yahoo.com
Or make half a quadrant and mirror across the line x=y
ie. xmirror = y ymirror = x
So only 1/8 of the points on a circle need trig/floating point calculation, the other 7/8 are reflections.
abing734@yahoo.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.