method to rotate a line around a point
Step one draws a line ab in the geometry artboard using the line tool, and uses the Point tool to draw a point O anywhere outside the line, and double click on the point O (set it to the center of rotation);
Step two Select Line AB, and then in the menu, select Transform--rotate--to enter the angle you want to rotate, and click Rotate.
Method two generates a straight line around the point rotation animation
Step a new angle parameter. Click on the top of the "Data" menu, in its Drop-down menu, select "New parameter", in the pop-up dialog box to create a new angle parameter T1;
Step two draws a straight line AB and point O, double click the Point O (set it as the center of rotation), select Line AB, and then select Transform in the menu-rotate, click the new angle parameter, and then click the Rotate button;
You can see a straight line moving around a point by right-clicking the angle parameter T1 and selecting animate the parameters.