Translate Rectangle corner when center rotated (20) degrees.

Rob42

New member
Joined
Aug 13, 2006
Messages
1
Hello, Am trying to resolve the math for the Rotating of a Rectangle
and calculating the X,Y translation of the top left corner:

Where we know:

Width, Height
Rotation at 'Center' of Rectangle (say A=20*)

What would the new Top Left Coordinates be?

i.e. Initially TopLeft corner is located at -(1/2W) & -(1/2H) from the
center or Origin of the rectangle.
We might rotate thru (+/-) 10 <-> 30 degrees.

________

Thanks anyone, I'm rusty...
 
Re: Translate Rectangle corner when center rotated (20) degr

Rob42 said:
Hello, Am trying to resolve the math for the Rotating of a Rectangle
and calculating the X,Y translation of the top left corner:

Where we know:

Width, Height
Rotation at 'Center' of Rectangle (say A=20*)

What would the new Top Left Coordinates be?

i.e. Initially TopLeft corner is located at -(1/2W) & -(1/2H) from the
center or Origin of the rectangle.
We might rotate thru (+/-) 10 <-> 30 degrees.

________

Thanks anyone, I'm rusty...
Hi, you can multiply the vector of x-y coordinates by a rotation matrix.
 
Top