The rotation doesn't affect the maximum radius. The maximum radius will
be the smaller of width or height, divided by 2.

 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Edgar
Sent: Tuesday, November 22, 2005 1:15 PM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Calc max radius of a circle 

I am trying to calculate the max radius a circle can be and have it
still fit in a bounding box.

The difficult part of the question is that the circle is really a 3D
object ie it can be rotate about the x or y axis.

Ie imagine  a plain circle drawn on the screen, now imagine your could
"push" the top of it down till its was edge on, then the max radius
would be half the width of the box. If pushed in on the left till it was
edge on it woulde be half the height of the box.

But how about all the other angles in between.

So you have width/height of box, and x rotation and a y rotation, so
what is the max radius..

Thanks
Rob 



_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to