# Check if a rectangle bisects another rectangle

I've seen many examples of checking for a rectangle ($A$) intersecting another rectangle ($B$), but I'm developing something where I need to check if $A$ is bisecting (crossing outside of) $B$.

My intersect method returns true if $A$ is completely inside of $B$ and also true if it bisects $B$. I'd like it to return false if $A$ is completely inside of $B$.

Note: $A$ and $B$ could have rotation applied.

Thanks!

-
bisect usually means "cut in half" – Henry Jun 22 '11 at 18:01
True, I wasn't sure the technical term for crossing over or overlapping. In everyday usage you can say a road bisects another without the latter ending up in two equal parts. – kreek Jun 22 '11 at 18:20

You can check whether A is completely inside B by checking if each of the four corners of A is inside B; if so then return false to your original question.