Newbie need desperirate help with ellipse.

This is a discussion on Newbie need desperirate help with ellipse. within the Game Programming forums, part of the General Programming Boards category; Hi thre all!! I've stared programming in borland C++ 5.02 about a year ago. Now I'm trying to go into ...

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

    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
    Posts
    282

    Equation

    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
    Posts
    1,916
    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 (:
    Away.

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, 09: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, 02:17 PM
  4. some ellipse and ExtFloodFill problem
    By monkeymon in forum Windows Programming
    Replies: 2
    Last Post: 09-03-2002, 11:20 AM
  5. Newbie Game Develpoers Unite!
    By Telenosis in forum Game Programming
    Replies: 10
    Last Post: 06-22-2002, 03:02 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21