May 04, 2011 · Now, I give the method Rectangle.contains() that checks if a point is inside a rectangle. The idea is to use the methods min() and max() between the given point and the rectangle edges as filters: if the computed point is different from the given point, then the given point is not in the rectangle. An axis-aligned rectangle is represented as a list [x1, y1, x2, y2], where (x1, y1) is the coordinate of its bottom-left corner, and (x2, y2) is the coordinate of its top-right corner. Its top and bottom edges are parallel to the X-axis, and its left and right edges are parallel to the Y-axis. I was also searching for Deconstruct Rectangle and got 15 “Deconstruct” commands but none for rectangle. That’s because the “r” got deconstructed within “ deconstuct rectangle”. I had to search for this issue on the forum, and thankfully, other people knew how to misspell and found it!