Help regarding drawing shapes

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
DNADrone
Posts: 4
Joined: August 14th, 2013, 9:12 am

Help regarding drawing shapes

Post by DNADrone » August 17th, 2013, 2:07 pm

Hey chili,
I gotta admit, the circle drawing technique of yours greatly motivated me (since I am a math nerd :mrgreen: ), and now, I want to try every curve available in mathematics. Like the ellipse, parabola, hyperbola, spiral, sin wave, tan wave etc etc.

I understand that ellipse is the collection of all points whose distance from the 2 foci when added, remains constant. Please put some hints about how I can implement this in C++ code.

Thanks a lot,
DNADrone.

Psychoman
Posts: 36
Joined: June 13th, 2013, 2:12 pm

Re: Help regarding drawing shapes

Post by Psychoman » August 19th, 2013, 7:21 am

You just take a formula from math that considers some kind of shape and try to draw it. The major thing is like in chilli lessons you need to change loops ,whenever you have range x > y and then you get y > x to not get a dotted picture.

Post Reply