GLUT shapes

I’ve drawn a cylinder with the GLU toolkit


glut.glutSolidCylinder(radius,height,100,360);

I’ve rotated the cylinder so it is lying on its side


gl.glRotated(90,xRotation,yRotation,0);

Is there a way to find the coordinates of the corners of the box bounding the cylinder (ignoring z values)?

screen space ? or in 3d space ?

only this special case ? or for any rotation ?

The cylinders have been drawn in 3d space and they can have any values for the x&y rotation but they will always be at 90 degrees rotation and have 0 for the z rotation value.

so as I understand it, you rotate the cylinder arround an axis that lie on the camera screen or at least lie on a plane parallele to the camera screen?

not so easy, will see if I can get some time to give you a proper answer