Member of the geometry class.
rectint(a, b)
c = rectint(a, b)
Calculates the common area shared by two rectangles. LabVIEW encodes the rectangles as four-element vectors that consist of the two corner elements (x, y) and (xlength, ylength). LabVIEW treats a negative xlength or a negative ylength as 0.
| Name | Description |
| a | Specifies a real vector or matrix where each row consists of exactly four elements. The four elements represent the two corner elements (x, y) and (xlength, ylength) of a rectangle. |
| b | Specifies a real vector or matrix where each row consists of exactly four elements. The four elements represent the two corner elements (x, y) and (xlength, ylength) of a rectangle. |
| Name | Description |
| c | Returns the common area of the rectangles you specify in a and b. If a and b are matrices, c returns a real matrix that contains the common areas of all rectangles you specify. |
C = rectint([0, 0, 1, 1], [0.5, 0.5, 1, 1])