Skip to content

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

Open

Description

@mathgeniuszach

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

Activity

  1. self-assigned this
    on May 31, 2020
  2. added
    bug
    on Nov 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions