Fix edge case for out of bounds (#2822)
Fix edge case for out of bounds (#2822)

* Fix edge case for out of bounds

This deals with the edge case where an object's corner may not be in the screen, but the object still overlaps and should be drawn.

* Calculate maximum diagonal for out of bounds calculation
Farama-Foundation/Gymnasium,Farama-Foundation/Gymnasium