Detects whether a rectangle intersects with another one, taking into an account the options passed.