Search found 4 matches

by DoubleImpact
July 8th, 2012, 3:33 am
Forum: Everything
Topic: Circle Algorithm
Replies: 6
Views: 3073

Re: Circle Algorithm

I guess what I'm missing is why does the formula with "rad" space out the pixels when they travel closely along the y-axis as opposed to the formula with "x0", which doesn't have that tapering problem. Not exactly sure what you're asking here brah. This is the "tapering" I was referring to when neg...
by DoubleImpact
July 8th, 2012, 1:39 am
Forum: Everything
Topic: Circle Algorithm
Replies: 6
Views: 3073

Re: Circle Algorithm

I think I see now; so x to x0 represents all of the x coordinates of 1/8th of the circle? But x to rad represents all of the x coordinates of 1/4th of the circle, yet the pixels begin to taper off when travelling steeper along the y-axis. I guess what I'm missing is why does the formula with "rad" s...
by DoubleImpact
July 6th, 2012, 3:18 am
Forum: Everything
Topic: Circle Algorithm
Replies: 6
Views: 3073

Circle Algorithm

Chili, I was reviewing the circle algorithm (lesson 11) and I was wondering, why do we bother adding in... int x0 = 0.7071068f * rad + 0.5f; I commented it out and a circle was produced just fine. The code that we put in D3DGraphics.cpp doesn't even make use of the x0 variable aside from that calcul...
by DoubleImpact
July 3rd, 2012, 11:17 am
Forum: Everything
Topic: Question About Header Files
Replies: 3
Views: 1766

Question About Header Files

Why do we need them at all? What's stopping us from taking all of the stuff that's written there and putting it in the .cpp file?