Skip to content

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

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions