how to get all the points of the circufrence python

The solution for “how to get all the points of the circufrence python” can be found here. The following code will assist you in solving the problem.

import math
pi = math.pi

def PointsInCircum(r,n=100):
return [(math.cos(2*pi/n*x)*r,math.sin(2*pi/n*x)*r) for x in range(0,n+1)]

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in