I can't for the life of me figure out how to do this. I thought it would be trivial...
Say I have a square and I know its centre point and width
I can find each point by adding or subtracting the width/2 to the centre point...
but when the square is rotated... I can't figure out how to do it :| Dear lord, how do I have a maths A level?
Finding the points of a square, given its centre point, length and rotation Watch
- Thread Starter
- 17-12-2010 01:24
- 17-12-2010 01:39
If (x,y) is on your square, then apply the rotation matrix (for an angle theta) to (x,y) to get (x',y')?
[Assuming rotation about the origin.]