Re: [pygame] Rect.contains - bug or feature?

2009-10-22 Thread jug
Luke Paireepinart wrote: On Thu, Oct 22, 2009 at 4:44 PM, jug > wrote: Hm, but than, r1.bottomright should be (99, 99) and not (100, 100)!? Or is topleft inside and bottomright outside the rect? Yep, I think it says this in the docs. Agreed. Thanks for t

Re: [pygame] Rect.contains - bug or feature?

2009-10-22 Thread Luke Paireepinart
On Thu, Oct 22, 2009 at 4:44 PM, jug wrote: > Hm, but than, r1.bottomright should be (99, 99) and not (100, 100)!? > Or is topleft inside and bottomright outside the rect? > Yep, I think it says this in the docs.

Re: [pygame] Rect.contains - bug or feature?

2009-10-22 Thread jug
Hm, but than, r1.bottomright should be (99, 99) and not (100, 100)!? Or is topleft inside and bottomright outside the rect? Julian Lorenz Quack wrote: Hi Julian jug wrote: import pygame r1 = pygame.Rect(0, 0, 100, 100) r2 = pygame.Rect(50, 50, 0, 0) r1.contains(r2) 1 r3 = pygame.Rect(50, 50

Re: [pygame] Rect.contains - bug or feature?

2009-10-22 Thread Lorenz Quack
Hi Julian jug wrote: import pygame r1 = pygame.Rect(0, 0, 100, 100) r2 = pygame.Rect(50, 50, 0, 0) r1.contains(r2) 1 r3 = pygame.Rect(50, 50, 50, 50) r1.contains(r3) 1 r4 = pygame.Rect(100, 100, 0, 0) r1.contains(r4) 0 I would expect a 1 in the last line as well. I wouldn't. r1 starts

[pygame] Rect.contains - bug or feature?

2009-10-22 Thread jug
import pygame r1 = pygame.Rect(0, 0, 100, 100) r2 = pygame.Rect(50, 50, 0, 0) r1.contains(r2) 1 r3 = pygame.Rect(50, 50, 50, 50) r1.contains(r3) 1 r4 = pygame.Rect(100, 100, 0, 0) r1.contains(r4) 0 I would expect a 1 in the last line as well. Julian