identify the method of defining circle
Answers
Answer:
There are two methods to define a circle in computer graphics, namely:
- Direct or Polynomial method and.
- Polar coordinates method.
Answer:
A circle is defined as a set of points that all are the same distance from a common point. The common point is known as the center and the distance from the center of the circle to any point on its circumference is called the radius.
It is an eight-way symmetric figure which can be divided into four quadrants and each quadrant has two octants. This symmetry helps in drawing a circle on a computer by knowing only one point of any octant.How to define a circle in computer graphics?
There are two methods to define a circle in computer graphics, namely:
Direct or Polynomial method and
Polar coordinates method
Let us have a look at both these methods and learn about them in brief.
1. Direct or Polynomial Method
In this method, a circle is defined with the help of a polynomial equation i.e.
(x - xc)2 + (y - yc)2 = r2
Where, (xc, yc) are coordinates of circle and r is radius of circle.
For each value of x, value of y can be calculated using,
y = yc ± √r2 – (x - xc)2
The initial points will be: x = xc – r, and y = yc
This is a very ineffective method because for each point value of xc, x and r are squared and then subtracted and then the square root is calculated, which leads to high time complexity.