# How do I find a diagonal rectangle?

**URL:** <https://forum.kirupa.com/t/how-do-i-find-a-diagonal-rectangle/320509>\
**Category:** Uncategorized\
**Created:** [March 25, 2011, 3:35pm UTC](https://forum.kirupa.com/t/how-do-i-find-a-diagonal-rectangle/320509 "2011-03-25T15:35:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![simranzenov](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@simranzenov](https://forum.kirupa.com/u/simranzenov)\
**Post date:** [March 25, 2011, 3:35pm UTC](https://forum.kirupa.com/t/how-do-i-find-a-diagonal-rectangle/320509/1 "2011-03-25T15:35:37Z")

</div>

I have searched everywhere and tried everything to find a solution to this problem. So I came here in hopes of finding an answer. Thanks in advance. 😁

What I need to do is find the rectangle of a rotated rectangle. I have a house that is diagonal and I need to find the rectangle of the bottom of the house so I can check for collisions. I was hoping to use the rectangles to find intersections. Something like -  
if (playerRect.intersects(houseRect.bottom){ do something };

Every time I try to get the rectangle of a rotated rectangle, all I get is the bounding box which is not rotated.

[![](http://s4.postimage.org/1py28919g/rectangle_Info.jpg)](http://postimage.org/image/1py28919g/)
