I'm having a mathematical issue.
I have no issue checking if one rectangle is within bounds of the other when they both (or one of them) have no angle and fit the grid perfectly.. but once I change angle of both of them, it all goes downhill.
Here's what I mean - the one to the right works flawlessly, but the ones to the left not so much: