in reply to Checking if squares intersect

Two squares intersect if and only if one square has at least one vertex inside the other square. (Whether two squares intersect if they only share part of an edge, have a single vertex on an edge of the other, or share only a vertex is something you have to decide, and code for). This property holds even if the squares aren't axis parallel. However, the property doesn't hold for rectangles, even if they are axes parallel.