Download Help (Windows Only) |
Owning Class: geometry
Requires: MathScript RT Module
rectintarea(a, b)
c = rectintarea(a, b)
Legacy Name: rectint
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. |
The following table lists the support characteristics of this function.
Supported in the LabVIEW Run-Time Engine | Yes |
Supported on RT targets | Yes |
Suitable for bounded execution times on RT | Not characterized |
C = rectintarea([0, 0, 1, 1], [0.5, 0.5, 1, 1])