2078 5

CSC214 · 2078 · 5 marks

Plot the 1st octant of a circle centered at origin, having the radius 10 units.

Plot the 1st octant of a circle centered at origin, having the radius 10 units. [5]

Computer GraphicsChapter 2: Scan Conversion AlgorithmScan Converting Circle and EllipseNumerical: midpoint circle algorithm
  • Center: origin $(0, 0)$ - Radius: $r = 10$ units - Required: 1st octant only (arc from $(0, 10)$ to the $x = y$ line, i.e. 90° to 45°) Starting point: $(x0, y0) = (0, r) = (0, 10)$ Initial decision parameter: $$p0 = 1 - r = 1 - 10 = -9$$ Update rules (for 1st octant, x increasing, y decreasing)...