|
-
Feb 13th, 2001, 06:02 PM
#1
Thread Starter
Good Ol' Platypus
If I knew the centre point, the radius, and the point (in degrees 0-359) I wanted to draw, how would I draw it?
(this should return X and Y, the point of the point... I hope I make sense!) I want to make a circle pixel by pixel so I need to know how to get the pixel!
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Feb 13th, 2001, 08:23 PM
#2
Frenzied Member
http://www.sparkseek.com/cgi-bin/sea...&qry=bresenham
http://www.gamedev.net/reference/art...article767.asp
Try those links, they ought to explain a few things. It's a highly historical problem, drawing circles. Back when computers were incredibly slow by today's standards, it was a big deal drawing a circle. Thankfully it's pretty easy now
Harry.
"From one thing, know ten thousand things."
-
Feb 14th, 2001, 09:32 PM
#3
Thread Starter
Good Ol' Platypus
Thats allright, I found it out...
Here it is, for any curious ppl
X = OriginX + cos(degree) * radius
Y = OriginY + sin(degree)*radius
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Feb 15th, 2001, 04:10 AM
#4
Frenzied Member
Oh, well just drawing a circle like that is very inefficient and slow, but never mind. Sorry, I would have said that but I thought you'd want something fast.
Harry.
"From one thing, know ten thousand things."
-
Feb 17th, 2001, 09:53 AM
#5
Lively Member
When you use Visual Basic to draw a circle with this code you will have to convert the degrees into radiant,
i mean you will have to multiply the degree value with PI/180 before you use it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|