regular_polygon¶
-
visualife.calc.math_utils.regular_polygon(n, r=1, cx=0, cy=0, phase=0)¶ Returns a list of vertices of a regular convex n-polygon, centered at (cx,cy) by default at (0,0)
Parameters: - n – number of edges of the polygon
- r – the radius of the circumscribing circle
- cx – X coordinate of the polygon center
- cy – Y coordinate of the polygon center
Returns: a list of n vertices