Fitting even number of points within the area of a circle

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By scarletred012

This seems more like a math problem but… how can I do this?

I basically know all the information of the circle.

The radius, the origin, etc.

If I want to fit a specified number of points evenly within the circle, what formula could get me that?

At the current moment I run through each coordinate in the grid and choose whether or not that coordinate is a candidate for being placed. Mainly if it’s within the circle. Now I’d like to constrain this by making it place points evenly. But like, if I want for example 2000 points, how can I place those 2000 points evenly?

Thanks!

:bust_in_silhouette: Reply From: jgodfrey

This is likely more algorithmically challenging than one might expect. I think something like the accepted answer here is what you’re after…