Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Basic shapes ......

  1. #1

    Basic shapes ......

    Dear

    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 .........

    Thanx.

  2. #2
    Super Moderator OpenGL Guru dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    4,388

    Re: Basic shapes ......

    This is OT for this forum, moving to the math and algorithms section, on opengl.org you may get an answer there.

  3. #3
    Intern Newbie
    Join Date
    May 2003
    Location
    Bucharest,Romania
    Posts
    49

    Re: Basic shapes ......

    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...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •