摘要 |
PURPOSE:To reduce the number of digits of a processing part and to specify a circle easily even at a high speed by finding coordinates of two points on the circumference and calculating the diameter. CONSTITUTION:The cursor of an X-Y plotter is moved to position a coordinate indicator at an optional point P1 on the circumference, reading the coordinate values x1, y1 of the point. Then, the cursor is moved along a straight line LX parallel to the X axis until it arrives at a point P2 on the circumference. Then, the indicator is moved along a straight line LY parallel to the Y axis which runs on the point P2 to position the indicator at a point P3 on the circumference, reading the coordinate values x3 and y3. Then, the coordinate values xC and yC of the center XC of the circle are founded from xC=(x1+x3)/2 and yC=(y1+ y3)/2 and the diameter of the circle, i.e. hypotenuse of the triangle P1P2P3 is calculated. This method simplifies the operations, so the number of digits of the processing part is reduced and the circle is specified easily even at a low speed. |