I have a plane (screen) with its width and height (monitor resolution, not square). And I'd like to distribute points on that plane with the (approximately) same distance from each other.
- 1 point will be in the middle,
- 2 points will be in the middle of y axis, and x axis will be divided by 3
- 3 points may be like triangle, but if sceen is wide enough, thay can be alighned in same y
- 4 like second part of above, or as rectangle..
- etc to 8 points max
Is there any algorithm for this?
Thank you for your time!
EDIT: same distance from each other and from plane border
EDIT2: I compute centers of mass for groups of objects on which behavior I simulate on plane.