Hi,
If
speed is not a concern, you can always do something like the pseudocode
below.
loop
theta = 0 to 2 * pi
{
x = xcenter + radius * cos(theta);
y = ycanter + radius * sin(theta);
plot(x,y);
}
Is
speed is a concern, you should use Bresenham's line scan conversion algorithm
adapted for circles. The details of this can be found in alot
of computer graphics books. I know for a fact the book called
Computer Graphics with OpenGL by Hearn and Baker discusses it. Good
luck!
Brian
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". |
- [JAVA3D] nedd help for algorhytme hterrolle
- Brian McCormick