I thought that it is a very usefull excercise for those that like to go into some mathematical concepts of
game programming. Iam sure it needs a little bit of thought but overall is very simple. The results can very well be just ascii files or just output on the screen, it doesn't really matter.
There are two versions of the task a 2d and 3d one. The 3d might be more difficult so you can just try the 2d
1st version
Write a program that produces a n set of points [xy] that are part of a circle and then calculated the largest
square that can be fitted in the circle and transform the initial coordinates of the cirlce to that of the square's.
INPUT
(P) number of point:
radius:
OUTPUT
(P) coordinates:
2nd version
Write a program that produces a n set of points [xyz] that are part of a sphere and then calculated the largest
cube that can be fitted in the sphere and transform the initial coordinates of the sphere to that of the cube's.
INPUT
(P) number of point:
radius:
OUTPUT
(P) coordinates:
a visual representation would make things easier I think. I did my best

