RE: [Flashcoders] Determining width of rotatedMC'simaginaryboundingbox

2006-03-21 Thread David Stiller
Odie Bracy PhD wrote: Actually, your width will change with the rotation. The greatest width will be when the diagonal line of your rectangle is a flat, horizontal line. That seems to sum it up, for sure. Thanks, Odie. Yotam Laufer wrote: First of all you're welcome. When using

RE: [Flashcoders] Determining width of rotatedMC'simaginaryboundingbox

2006-03-20 Thread David Stiller
Danny, My MC is a 150x30 rectangle rotated to 45 degrees. My results show width and height both at 180, when they should be closer to 130. Here's my code: That's odd: when I go through those calculations with a calculator, they come out with about 130, just as you say [...]. Are you sure

Re: [Flashcoders] Determining width of rotatedMC'simaginaryboundingbox

2006-03-20 Thread Odie Bracy PhD
Actually, your width will change with the rotation. The greatest width will be when the diagonal line of your rectangle is a flat, horizontal line. This width will be equal to the square root of the sum of the squares of the original height and width before the rotation. Odie On Mar 20,