MonoVision icon indicating copy to clipboard operation
MonoVision copied to clipboard

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

Open mathgeniuszach opened this issue 5 years ago • 0 comments

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

mathgeniuszach avatar May 30 '20 21:05 mathgeniuszach