View Full Version : Basic shapes ......

01-04-2004, 08:04 AM

I want to make my own graphical labrary, I fail to find how to make the circle from scratch. If any body have an idea..... Do tell me.

I want the formulae for making the circle and other shapes of this family.

Try to send some link .........


01-04-2004, 11:41 AM
This is OT for this forum, moving to the math and algorithms section, on opengl.org you may get an answer there.

01-04-2004, 11:41 AM
Try searching for quadrics on google.

The equation of the circle is

(x-a)^2 + (y-b)^2 = r^2.

This is the circle of center (a, b) and
radius r.

A general quadric has the equation:

a x^2 + b y^2 + c xy + d x + e y + f = 0

Other quadrics are : ellipse, hiperbola,
parabola. Lines are degenerated quadrics...

I hope I have helped you even I haven't sent you a link...