Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rect class function Contains() doesn't always work as described #1

Open
mathgeniuszach opened this issue May 30, 2020 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@mathgeniuszach
Copy link

According to the Documentation, the Rect's Contains() function is supposed to "Test to see if another Rectangle intersects with the Rectangle." However, in the example below, the function completely fails on two Rectangles that do intersect:

a = NewRect(8, 0, 8, 16)
b = NewRect(9, 9, 8, 16)
print(a:Contains(b))

Output:

false
@jessefreeman jessefreeman self-assigned this May 31, 2020
@jessefreeman jessefreeman transferred this issue from PixelVision8/PixelVision8 Nov 13, 2021
@jessefreeman jessefreeman added the bug Something isn't working label Nov 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants