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

Re: [pygame] overlapping rect



Lionel barret De Nazaris wrote:
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.
oops, didn't see :  pygame.Rect.clip(Rect): return Rect :-[
L.