4

Possible Duplicate:
Calculate Bounding box coordinates from a rotated rectangle, Picture inside

How do i calculate a bounding box of a rotated rectangle ?

I have X,Y ( top left ) , width, height, and rotation in degrees and i need to fast calculate minX,minY,maxX,maxY of that rectangle. What is the fastest way to do this?

Community
  • 1
  • 1
Paweł
  • 2,144
  • 1
  • 18
  • 25

0 Answers0