Intersect stores the intersection of two rectangles. If the rectangles do not intersect, the current rectangle is cleared:
(x1 = 0, y1 = 0, x2 = 0, y2 = 0)
Parameters |
Description |
T l |
A value that represents the x1 component of a rectangle. This value is compared to the x1 of the current rectangle in order to determine intersection. |
T t |
A value that represents the y1 component of a rectangle. This value is compared to the y1 of the current rectangle in order to determine intersection. |
T r |
A rectangle whose components are compared to those of the current rectangle in order to determine intersection. |
T r |
A value that represents the x2 component of a rectangle. This value is compared to the x2 of the current rectangle in order to determine intersection. |
T b |
A value that represents the y2 component of a rectangle. This value is compared to the y2 of the current rectangle in order to determine intersection. |
A Rect reference to a new string whose components represent the intersection of two rectangles. If the rectangles do not intersect, the rectangle is cleared.