Home >Software Tutorial >Computer Software >How to create any n-sided polygon of a circle using geometric sketchpad
For example: To draw any n-sided polygon of a circle, the specific operation is as follows:
Draw a circle O in the blank area of the artboard and pick any point A on the circle, double-click circle O as the center of rotation.
Create new parameter n=7 and calculate 360°/n (note that the unit [degree] must be used at this time).
Select point A, click the menu [Transform] - [Rotate], a rotation dialog box will appear, click the calculation result '360°/n' as the mark angle , get point B; connect line segment AB.
Select point A and parameter n in sequence, hold down the [Shift] key, click [Transform] - [Depth Iteration], the iteration dialog box will appear, click Click point B as the initial image. At this time, a complete regular heptagon is displayed on the screen. Press the [Iterate] button to complete the operation.
How to change parameter n?
There are two methods: the first is to double-click parameter n and then enter the value in the dialog box. The second method is to click parameter n and press ‘ ’ and ‘-’ on the keyboard. The system default change amount is 1. You can modify the change amount by right-clicking.
Note: When iterating, the parameter n as the iteration depth must be selected at the end. This is a system requirement.
The above is the detailed content of How to create any n-sided polygon of a circle using geometric sketchpad. For more information, please follow other related articles on the PHP Chinese website!