In the specified rectangle frame, use the mouse to select the entire frame, randomly generated five points, and the distance between the adjacent point straight line distance is the same,
CodePudding user response:
This can be understood as a rectangle is inscribed in a pentagon math, if known rectangular, the pentagon's side should be fixed (2 * * tan18 short side), the algorithm to baidu or thinking,