{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

lecture08-output-primitives-part-iv - OutputPrimitives...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
Output Primitives Part IV Ellipse Drawing
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
2 General equation General equation of an ellipse: d 1 + d 2 = constant ( 29 ( 29 ( 29 ( 29 constant 2 2 2 2 2 1 2 1 = - + - + - + - y y x x y y x x
Background image of page 2
3 “Standard” equation However, we will only consider ‘standard’ ellipse: 1 2 2 = - + - y c x c r y y r x x
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
4 Symmetry of an ellipse An ellipse only has a 2-way symmetry Calculation of a point (x,y) in one quadrant yields the ellipse points shown for the other three quadrants
Background image of page 4
5 Equation of an ellipse revisited Consider an ellipse centered at the origin: What is the discriminator function ? ( 29 2 2 2 2 2 2 , y x x y e r r y r x r y x f - + = 1 2 2 = + y x r y r x
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
6 Equation of an ellipse revisited …and its properties: f e (x,y) <  0 for a point inside the ellipse f e (x,y)  0 for a point outside the ellipse f e (x,y) =  0 for a point on the ellipse
Background image of page 6
7 Midpoint Ellipse Algorithm Ellipse is different from circle.
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}