Thread: Newbie need desperirate help with ellipse.

  1. #1
    Bios Raider biosninja's Avatar
    Join Date
    Jul 2002
    South Africa

    Unhappy Newbie need desperirate help with ellipse.

    Hi thre all!! I've stared programming in borland C++ 5.02 about a year ago. Now I'm trying to go into graphics. At the moment I can't seem to get a function to draw an ellipse in (s)vga mode. I can do a circle + a line but I just can't seem to do ellipse.

  2. #2
    Registered User moonwalker's Avatar
    Join Date
    Jul 2002


    The cartesian equation for an ellipse is
    x2/a2 + y2/b2=1

    where: x = a sin(teta) and y = b cos(teta)
    are the parametric equations.

    hope this helps..

  3. #3
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    use the equations for making a circle, except instead of having the radius the same in both equations, the y equation should have the vertical radius and the x equation should have the horizontal radius (:

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Newbie with Very Newbie Question
    By Jedi_Mediator in forum C++ Programming
    Replies: 18
    Last Post: 07-01-2008, 08:00 AM
  2. Newbie in problem with looping
    By nrain in forum C Programming
    Replies: 6
    Last Post: 11-05-2005, 12:53 PM
  3. Newbie Programmer
    By Extropian in forum C++ Programming
    Replies: 3
    Last Post: 05-18-2004, 01:17 PM
  4. some ellipse and ExtFloodFill problem
    By monkeymon in forum Windows Programming
    Replies: 2
    Last Post: 09-03-2002, 10:20 AM
  5. Newbie Game Develpoers Unite!
    By Telenosis in forum Game Programming
    Replies: 10
    Last Post: 06-22-2002, 02:02 PM