Is there a difference between Rect.x and Rect.xMin? Rect.y and Rect.yMax?
Yes. If you change the xMin value, the Rect will be resized horizontally from the left hand side. If you change the x value the Rect will simply move horizontally. When outputting the two values they will be the same.
y is the vertical position of the Rect’s top edge. yMax is the vertical position of the Rect’s bottom edge. Again, changing the y value will shift the Rect’s position while changing its yMax value will resize it. yMax - y will output the same value as height.
2 Likes