[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] overlapping rect



A more elaborate version of Rect.colliderect would be nice.
getting the intersection of two rect is quite useful, and
colliderect does the math anyway.
So
Rect.ColliderectWithOverlap would return (bool, overlappingRect).
overlappingRect could be a empty rect or None.

What do you think ?

L.