MonoVision
MonoVision copied to clipboard
Rect class function Contains() doesn't always work as described
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